GetKeyboardLayout: Difference between revisions
Jump to navigation
Jump to search
m (→Syntax) |
|||
(One intermediate revision by the same user not shown) | |||
Line 27: | Line 27: | ||
==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}} |
Revision as of 20:37, 5 April 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
- addDebugHook
- base64Decode
- base64Encode
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace
- createTrayNotification
- debugSleep
- downloadFile
- decodeString
- encodeString
- fromJSON
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getFPSLimit
- getKeyboardLayout
- getLocalization
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimers
- getTimerDetails
- gettok
- getUserdataType
- getVersion
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isShowCollisionsEnabled
- isShowSoundEnabled
- isTimer
- isTransferBoxAlwaysVisible
- isTransferBoxVisible
- isTrayNotificationEnabled
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setClipboard
- setDevelopmentMode
- setFPSLimit
- setTimer
- setTransferBoxVisible
- setWindowFlashing
- sha256
- showCol
- showSound
- split
- teaDecode
- teaEncode
- tocolor
- toJSON
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub