GetKeyboardLayout: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Add new-feature-item template)
(Move Needs_Example template down)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{New feature/item|3.0157|1.5.6|18866|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.}}
{{Needs_Example}}
{{Needs_Example}}
{{New feature/item|3.0157|1.5.6|18866|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==
==Syntax==

Revision as of 17:39, 25 August 2019

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.

Accessories-text-editor.png Script Example Missing Function GetKeyboardLayout needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


Syntax

table getKeyboardLayout()

Returns

Returns a table with keyboard layout properties:

Property Values and description
readingLayout
"ltr" Left to right (English)
"rtl" Right to left (Arabic, Hebrew)
"ttb-rtl-ltr" Vertical top to bottom with columns to the left and also left to right (Japanese)
"ttb-ltr" Vertical top to bottom with columns proceeding to the right (Mongolian)

Example

-- TODO

See Also