Key names: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
m (Portuguese language indexed)
 
(20 intermediate revisions by 11 users not shown)
Line 1: Line 1:
This page lists all the key names. These can be used by the console commands ''bind'' and ''unbind'' as well as the script functions [[bindKey]] and [[unbindKey]].
This page lists all the key names. Except for ''''''escape'''''', they can all be used by the console commands ''bind'' and ''unbind'' as well as the script functions [[bindKey]] and [[unbindKey]].
 
Lua table of all the valid key names listed on this page:
<syntaxhighlight lang="lua">keyTable = { "mouse1", "mouse2", "mouse3", "mouse4", "mouse5", "mouse_wheel_up", "mouse_wheel_down", "arrow_l", "arrow_u",
"arrow_r", "arrow_d", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k",
"l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "num_0", "num_1", "num_2", "num_3", "num_4", "num_5",
"num_6", "num_7", "num_8", "num_9", "num_mul", "num_add", "num_sep", "num_sub", "num_div", "num_dec", "num_enter", "F1", "F2", "F3", "F4", "F5",
"F6", "F7", "F8", "F9", "F10", "F11", "F12", "escape", "backspace", "tab", "lalt", "ralt", "enter", "space", "pgup", "pgdn", "end", "home",
"insert", "delete", "lshift", "rshift", "lctrl", "rctrl", "[", "]", "pause", "capslock", "scroll", ";", ",", "-", ".", "/", "#", "\\", "=" }</syntaxhighlight>
 


<div style="border:3px solid green;margin-bottom:3px;"><div style="float:right;padding-right:5px;font-weight:bold;">MOUSE</div>
<div style="border:3px solid green;margin-bottom:3px;"><div style="float:right;padding-right:5px;font-weight:bold;">MOUSE</div>
* '''mouse1'''
* '''mouse1''' ''(This is left click)''
* '''mouse2'''
* '''mouse2''' ''(This is right click)''
* '''mouse3'''
* '''mouse3''' ''(This is the middle mouse button)''
* '''mouse4'''
* '''mouse5'''
* '''mouse_wheel_up'''
* '''mouse_wheel_down'''
</div>
</div>
<div style="border:3px solid red;margin-bottom:3px;"><div style="float:right;padding-right:5px;font-weight:bold;">ARROW KEYS</div>
<div style="border:3px solid red;margin-bottom:3px;"><div style="float:right;padding-right:5px;font-weight:bold;">ARROW KEYS</div>
Line 68: Line 81:
* '''num_sub'''
* '''num_sub'''
* '''num_div'''
* '''num_div'''
* '''num_dec'''
* '''num_enter'''
</div>
</div>
<div style="border:3px solid pink;margin-bottom:3px;"><div style="float:right;padding-right:5px;font-weight:bold;">FUNCTION KEYS</div>
<div style="border:3px solid pink;margin-bottom:3px;"><div style="float:right;padding-right:5px;font-weight:bold;">FUNCTION KEYS</div>
Line 83: Line 98:
* '''F12'''
* '''F12'''
</div>
</div>
<div style="border:3px solid alice blue;margin-bottom:3px;"><div style="float:right;padding-right:5px;font-weight:bold;">OTHER</div>
<div style="border:3px solid purple;margin-bottom:3px;"><div style="float:right;padding-right:5px;font-weight:bold;">OTHER</div>
* '''bkspc'''
* '''escape'''
* '''backspace'''
* '''tab'''
* '''tab'''
* '''shift'''
* '''lalt'''
* '''ctrl'''
* '''ralt'''
* '''enter'''
* '''enter'''
* '''space'''
* '''space'''
Line 102: Line 118:
* '''['''
* '''['''
* ''']'''
* ''']'''
* '''pause'''
* '''capslock'''
* '''scroll'''
* ''';'''
* ''','''
* '''-'''
* '''.'''
* '''/'''
* '''#'''
* '''\'''
* '''='''
</div>
</div>
[[pl:Key names]]
[[pt-br:Key names]]
[[Category:Scripting Concepts]]

Latest revision as of 23:52, 28 December 2020

This page lists all the key names. Except for 'escape', they can all be used by the console commands bind and unbind as well as the script functions bindKey and unbindKey.

Lua table of all the valid key names listed on this page:

keyTable = { "mouse1", "mouse2", "mouse3", "mouse4", "mouse5", "mouse_wheel_up", "mouse_wheel_down", "arrow_l", "arrow_u",
 "arrow_r", "arrow_d", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k",
 "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "num_0", "num_1", "num_2", "num_3", "num_4", "num_5",
 "num_6", "num_7", "num_8", "num_9", "num_mul", "num_add", "num_sep", "num_sub", "num_div", "num_dec", "num_enter", "F1", "F2", "F3", "F4", "F5",
 "F6", "F7", "F8", "F9", "F10", "F11", "F12", "escape", "backspace", "tab", "lalt", "ralt", "enter", "space", "pgup", "pgdn", "end", "home",
 "insert", "delete", "lshift", "rshift", "lctrl", "rctrl", "[", "]", "pause", "capslock", "scroll", ";", ",", "-", ".", "/", "#", "\\", "=" }


MOUSE
  • mouse1 (This is left click)
  • mouse2 (This is right click)
  • mouse3 (This is the middle mouse button)
  • mouse4
  • mouse5
  • mouse_wheel_up
  • mouse_wheel_down
ARROW KEYS
  • arrow_l
  • arrow_u
  • arrow_r
  • arrow_d
NUMBERS
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
LETTERS
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
  • i
  • j
  • k
  • l
  • m
  • n
  • o
  • p
  • q
  • r
  • s
  • t
  • u
  • v
  • w
  • x
  • y
  • z
NUMERIC KEYPAD
  • num_0
  • num_1
  • num_2
  • num_3
  • num_4
  • num_5
  • num_6
  • num_7
  • num_8
  • num_9
  • num_mul
  • num_add
  • num_sep
  • num_sub
  • num_div
  • num_dec
  • num_enter
FUNCTION KEYS
  • F1
  • F2
  • F3
  • F4
  • F5
  • F6
  • F7
  • F8
  • F9
  • F10
  • F11
  • F12
OTHER
  • escape
  • backspace
  • tab
  • lalt
  • ralt
  • enter
  • space
  • pgup
  • pgdn
  • end
  • home
  • insert
  • delete
  • lshift
  • rshift
  • lctrl
  • rctrl
  • [
  • ]
  • pause
  • capslock
  • scroll
  • ;
  • ,
  • -
  • .
  • /
  • #
  • \
  • =