love.displayrotated

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

Called when the device display orientation changed, for example, user rotated their phone 180 degrees.

Function

Synopsis

love.displayrotated( index, orientation )

Arguments

number index
The index of the display that changed orientation.
DisplayOrientation orientation
The new orientation.

Returns

Nothing.

See Also


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