love.window.getDisplayOrientation

Available since LÖVE 11.3
This function is not supported in earlier versions.

Gets current device display orientation.

Function

Synopsis

orientation = love.window.getDisplayOrientation( index )

Arguments

number index (nil)
Display index to get its display orientation, or nil for default display index.

Returns

DisplayOrientation orientation
Current device display orientation.

See Also


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.window.getDisplayOrientation