{{newin|[[11.3]]|113|type=function}}
Gets current device display orientation.

== Function ==
=== Synopsis ===
<source lang="lua">
orientation = love.window.getDisplayOrientation( index )
</source>
=== Arguments ===
{{param|number|index (nil)|Display index to get its display orientation, or nil for default display index.}}
=== Returns ===
{{param|DisplayOrientation|orientation|Current device display orientation.}}

== See Also ==
* [[parent::love.window]]
* [[DisplayOrientation]]
* [[love.displayrotated]]

[[Category:Functions]]
{{#set:Description=Gets current device display orientation.}}

== Other Languages ==
{{i18n|love.window.getDisplayOrientation}}