Difference between revisions of "love.window.getDisplayOrientation"
(Created page with "{{newin|11.3|113|type=function}} Gets current device display orientation. == Function == === Synopsis === <source lang="lua"> orientation = love.window.getDisplayOrientat...") |
m (forgot index param) |
||
Line 5: | Line 5: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | orientation = love.window.getDisplayOrientation( ) | + | orientation = love.window.getDisplayOrientation( index ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | + | {{param|number|index (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.}} |
Revision as of 02:46, 20 December 2018
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
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info