Difference between revisions of "love.window.getDisplayOrientation"

m (forgot index param)
(Make displayindex argument name consistent with the other APIs)
 
Line 5: Line 5:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
orientation = love.window.getDisplayOrientation( index )
+
orientation = love.window.getDisplayOrientation( displayindex )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|number|index (nil)|Display index to get its display orientation, or nil for default display index.}}
+
{{param|number|displayindex (nil)|Display index to get its display orientation, or nil for default display index.}}
 
=== Returns ===
 
=== Returns ===
 
{{param|DisplayOrientation|orientation|Current device display orientation.}}
 
{{param|DisplayOrientation|orientation|Current device display orientation.}}

Latest revision as of 22:56, 24 June 2021

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( displayindex )

Arguments

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

Returns

DisplayOrientation orientation
Current device display orientation.

See Also


Other Languages