GetKeyboardLayout: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (copy from https://docs.microsoft.com/en-us/windows/win32/intl/locale-ireadinglayout) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">table getKeyboardLayout()</syntaxhighlight> | <syntaxhighlight lang="lua">table getKeyboardLayout ()</syntaxhighlight> | ||
===Returns=== | ===Returns=== | ||
Line 20: | Line 20: | ||
| <code>"rtl"</code> || Right to left (Arabic, Hebrew) | | <code>"rtl"</code> || Right to left (Arabic, Hebrew) | ||
|- | |- | ||
| <code>"ttb-rtl-ltr"</code> || | | <code>"ttb-rtl-ltr"</code> || Either read vertically from top to bottom with columns going from right to left, or read in horizontal rows from left to right, as for the Japanese (Japan) locale. | ||
|- | |- | ||
| <code>"ttb-ltr"</code> || | | <code>"ttb-ltr"</code> || Read vertically from top to bottom with columns going from left to right, as for the Mongolian (Mongolian) locale. | ||
|} | |} | ||
|} | |} | ||
==Example== | ==Example== | ||
<section name="Client" class="client" show="true"> | |||
<syntaxhighlight lang="lua"> | |||
addCommandHandler("layout", function() | |||
outputConsole( inspect( getKeyboardLayout() ) )--output keyboard layout in console (F8) | |||
end) | |||
</syntaxhighlight> | |||
</section> | |||
==See Also== | ==See Also== | ||
{{Client_utility_functions}} | {{Client_utility_functions}} |
Latest revision as of 11:23, 18 October 2020
This function gets the player's keyboard layout settings, which they are currently (keyboard layout can be changed at any moment) using at the time of invocation.
Syntax
table getKeyboardLayout ()
Returns
Returns a table with keyboard layout properties:
Property | Values and description | ||||||||
---|---|---|---|---|---|---|---|---|---|
readingLayout |
|
Example
Click to collapse [-]
ClientaddCommandHandler("layout", function() outputConsole( inspect( getKeyboardLayout() ) )--output keyboard layout in console (F8) end)
See Also
- createTrayNotification
- downloadFile
- getDevelopmentMode
- getKeyboardLayout
- getLocalization
- isShowCollisionsEnabled
- isShowSoundEnabled
- isTransferBoxAlwaysVisible
- isTransferBoxVisible
- isTrayNotificationEnabled
- setClipboard
- setDevelopmentMode
- setTransferBoxVisible
- setWindowFlashing
- showCol
- showSound
- Shared
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace