{{newin|[[11.3]]|113|type=callback}}
Called when the device display orientation changed, for example, user rotated their phone 180 degrees.

== Function ==
=== Synopsis ===
<source lang="lua">
love.displayrotated( index, orientation )
</source>
=== Arguments ===
{{param|number|index|The index of the display that changed orientation.}}
{{param|DisplayOrientation|orientation|The new orientation.}}
=== Returns ===
Nothing.

== See Also ==
* [[parent::love]]
* [[love.window.getDisplayOrientation]]

[[Category:Callbacks]]
{{#set:Description=Called when the device display orientation changed.}}
{{#set:Subcategory=General}}
== Other Languages ==
{{i18n|love.displayrotated}}