Garry's Mod Wiki

Revision Difference

Enums/KEY#516234

<cat>enum</cat> <enumeration>⤶ <enum>⤶ <description> Enumerations used by: * <page>input.IsKeyDown</page> * <page>input.WasKeyPressed</page> * <page>input.WasKeyReleased</page> * <page>input.WasKeyTyped</page> * <page>input.IsKeyTrapping</page> * <page>input.GetKeyName</page> * <page>input.LookupBinding</page> * <page>PANEL:OnKeyCodePressed</page> * <page>PANEL:OnKeyCodeReleased</page> It's also part of the <page>BUTTON_CODE</page>. </description> <fields><item key="KEY_FIRST" value="0</fields>⤶ ⤶ </enumeration>⤶ <items><item key="KEY_FIRST" value="0</items>⤶ ⤶ </enum>⤶ <enumfield">key_none|0</item> <item key="key_0" value="1">normal number 0 key</item> <item key="key_1" value="2">normal number 1 key</item> <item key="key_2" value="3">normal number 2 key</item> <item key="key_3" value="4">normal number 3 key</item> <item key="key_4" value="5">normal number 4 key</item> <item key="key_5" value="6">normal number 5 key</item> <item key="key_6" value="7">normal number 6 key</item> <item key="key_7" value="8">normal number 7 key</item> <item key="key_8" value="9">normal number 8 key</item> <item key="key_9" value="10">normal number 9 key</item> <item key="key_a" value="11}}{{enumfield">key_b|12</item> <item key="key_c" value="13}}{{enumfield">key_d|14</item> <item key="key_e" value="15}}{{enumfield">key_f|16</item> <item key="key_g" value="17}}{{enumfield">key_h|18</item> <item key="key_i" value="19}}{{enumfield">key_j|20</item> <item key="key_k" value="21}}{{enumfield">key_l|22</item> <item key="key_m" value="23}}{{enumfield">key_n|24</item> <item key="key_o" value="25}}{{enumfield">key_p|26</item> <item key="key_q" value="27}}{{enumfield">key_r|28</item> <item key="key_s" value="29}}{{enumfield">key_t|30</item> <item key="key_u" value="31}}{{enumfield">key_v|32</item> <item key="key_w" value="33}}{{enumfield">key_x|34</item> <item key="key_y" value="35}}{{enumfield">key_z|36</item> <item key="key_pad_0" value="37">keypad number 0 key</item> <item key="key_pad_1" value="38">keypad number 1 key</item> <item key="key_pad_2" value="39">keypad number 2 key</item> <item key="key_pad_3" value="40">keypad number 3 key</item> <item key="key_pad_4" value="41">keypad number 4 key</item> <item key="key_pad_5" value="42">keypad number 5 key</item> <item key="key_pad_6" value="43">keypad number 6 key</item> <item key="key_pad_7" value="44">keypad number 7 key</item> <item key="key_pad_8" value="45">keypad number 8 key</item> <item key="key_pad_9" value="46">keypad number 9 key</item> <item key="key_pad_divide" value="47">keypad division/slash key (/)</item> <item key="key_pad_multiply" value="48">keypad asterisk key (*)</item> <item key="key_pad_minus" value="49">keypad minus key</item> <item key="key_pad_plus" value="50">keypad plus key</item> <item key="key_pad_enter" value="51">keypad enter key</item> <item key="key_pad_decimal" value="52">keypad dot key (.)</item> <item key="key_lbracket" value="53}}{{enumfield">key_rbracket|54</item> <item key="key_semicolon" value="55}}{{enumfield">key_apostrophe|56</item> <item key="key_backquote" value="57}}{{enumfield">key_comma|58</item> <item key="key_period" value="59}}{{enumfield">key_slash|60</item> <item key="key_backslash" value="61}}{{enumfield">key_minus|62</item> <item key="key_equal" value="63}}{{enumfield">key_enter|64</item> <item key="key_space" value="65}}{{enumfield">key_backspace|66</item> <item key="key_tab" value="67}}{{enumfield">key_capslock|68</item> <item key="key_numlock" value="69}}{{enumfield">key_escape|70</item> <item key="key_scrolllock" value="71}}{{enumfield">key_insert|72</item> <item key="key_delete" value="73}}{{enumfield">key_home|74</item> <item key="key_end" value="75}}{{enumfield">key_pageup|76</item> <item key="key_pagedown" value="77}}{{enumfield">key_break|78</item> <item key="key_lshift" value="79">the left shift key, has been seen to be triggered by right shift in <page>panel:onkeycodepressed</page></item> <item key="key_rshift" value="80}}{{enumfield">key_lalt|81</item> <item key="key_ralt" value="82}}{{enumfield">key_lcontrol|83</item> <item key="key_rcontrol" value="84}}{{enumfield">key_lwin|85|the left windows key or the command key on mac osx</item> <item key="key_rwin" value="86">the right windows key or the command key on mac osx</item> <item key="key_app" value="87}}{{enumfield">key_up|88</item> <item key="key_left" value="89}}{{enumfield">key_down|90</item> <item key="key_right" value="91}}{{enumfield">key_f1|92</item> <item key="key_f2" value="93}}{{enumfield">key_f3|94</item> <item key="key_f4" value="95}}{{enumfield">key_f5|96</item> <item key="key_f6" value="97}}{{enumfield">key_f7|98</item> <item key="key_f8" value="99}}{{enumfield">key_f9|100</item> <item key="key_f10" value="101}}{{enumfield">key_f11|102</item> <item key="key_f12" value="103}}{{enumfield">key_capslocktoggle|104</item> <item key="key_numlocktoggle" value="105}}{{enumfield">key_last|106</item> <item key="key_scrolllocktoggle" value="106}}{{enumfield">key_count|107</item> <item key="key_xbutton_a" value="114}}{{enumfield">key_xbutton_b|115</item> <item key="key_xbutton_x" value="116}}{{enumfield">key_xbutton_y|117</item> <item key="key_xbutton_left_shoulder" value="118}}{{enumfield">key_xbutton_right_shoulder|119</item> <item key="key_xbutton_back" value="120}}{{enumfield">key_xbutton_start|121</item> <item key="key_xbutton_stick1" value="122}}{{enumfield">key_xbutton_stick2|123</item> <item key="key_xbutton_up" value="146}}{{enumfield">key_xbutton_right|147</item> <item key="key_xbutton_down" value="148}}{{enumfield">key_xbutton_left|149</item> <item key="key_xstick1_right" value="150}}{{enumfield">key_xstick1_left|151</item> <item key="key_xstick1_down" value="152}}{{enumfield">key_xstick1_up|153</item> <item key="key_xbutton_ltrigger" value="154}}{{enumfield">key_xbutton_rtrigger|155</item> <item key="key_xstick2_right" value="156}}{{enumfield">key_xstick2_left|157</item> <item key="key_xstick2_down" value="158}}{{enumfield">key_xstick2_up|159</item>> <fieldsonly>{{{FieldsOnly|</fieldsonly> </enumfield">key_none|0</item> <item key="key_0" value="1">normal number 0 key</item> <item key="key_1" value="2">normal number 1 key</item> <item key="key_2" value="3">normal number 2 key</item> <item key="key_3" value="4">normal number 3 key</item> <item key="key_4" value="5">normal number 4 key</item> <item key="key_5" value="6">normal number 5 key</item> <item key="key_6" value="7">normal number 6 key</item> <item key="key_7" value="8">normal number 7 key</item> <item key="key_8" value="9">normal number 8 key</item> <item key="key_9" value="10">normal number 9 key</item> <item key="key_a" value="11}}{{enumfield">key_b|12</item> <item key="key_c" value="13}}{{enumfield">key_d|14</item> <item key="key_e" value="15}}{{enumfield">key_f|16</item> <item key="key_g" value="17}}{{enumfield">key_h|18</item> <item key="key_i" value="19}}{{enumfield">key_j|20</item> <item key="key_k" value="21}}{{enumfield">key_l|22</item> <item key="key_m" value="23}}{{enumfield">key_n|24</item> <item key="key_o" value="25}}{{enumfield">key_p|26</item> <item key="key_q" value="27}}{{enumfield">key_r|28</item> <item key="key_s" value="29}}{{enumfield">key_t|30</item> <item key="key_u" value="31}}{{enumfield">key_v|32</item> <item key="key_w" value="33}}{{enumfield">key_x|34</item> <item key="key_y" value="35}}{{enumfield">key_z|36</item> <item key="key_pad_0" value="37">keypad number 0 key</item> <item key="key_pad_1" value="38">keypad number 1 key</item> <item key="key_pad_2" value="39">keypad number 2 key</item> <item key="key_pad_3" value="40">keypad number 3 key</item> <item key="key_pad_4" value="41">keypad number 4 key</item> <item key="key_pad_5" value="42">keypad number 5 key</item> <item key="key_pad_6" value="43">keypad number 6 key</item> <item key="key_pad_7" value="44">keypad number 7 key</item> <item key="key_pad_8" value="45">keypad number 8 key</item> <item key="key_pad_9" value="46">keypad number 9 key</item> <item key="key_pad_divide" value="47">keypad division/slash key (/)</item> <item key="key_pad_multiply" value="48">keypad asterisk key (*)</item> <item key="key_pad_minus" value="49">keypad minus key</item> <item key="key_pad_plus" value="50">keypad plus key</item> <item key="key_pad_enter" value="51">keypad enter key</item> <item key="key_pad_decimal" value="52">keypad dot key (.)</item> <item key="key_lbracket" value="53}}{{enumfield">key_rbracket|54</item> <item key="key_semicolon" value="55}}{{enumfield">key_apostrophe|56</item> <item key="key_backquote" value="57}}{{enumfield">key_comma|58</item> <item key="key_period" value="59}}{{enumfield">key_slash|60</item> <item key="key_backslash" value="61}}{{enumfield">key_minus|62</item> <item key="key_equal" value="63}}{{enumfield">key_enter|64</item> <item key="key_space" value="65}}{{enumfield">key_backspace|66</item> <item key="key_tab" value="67}}{{enumfield">key_capslock|68</item> <item key="key_numlock" value="69}}{{enumfield">key_escape|70</item> <item key="key_scrolllock" value="71}}{{enumfield">key_insert|72</item> <item key="key_delete" value="73}}{{enumfield">key_home|74</item> <item key="key_end" value="75}}{{enumfield">key_pageup|76</item> <item key="key_pagedown" value="77}}{{enumfield">key_break|78</item> <item key="key_lshift" value="79">the left shift key, has been seen to be triggered by right shift in <page>panel:onkeycodepressed</page></item> <item key="key_rshift" value="80}}{{enumfield">key_lalt|81</item> <item key="key_ralt" value="82}}{{enumfield">key_lcontrol|83</item> <item key="key_rcontrol" value="84}}{{enumfield">key_lwin|85|the left windows key or the command key on mac osx</item> <item key="key_rwin" value="86">the right windows key or the command key on mac osx</item> <item key="key_app" value="87}}{{enumfield">key_up|88</item> <item key="key_left" value="89}}{{enumfield">key_down|90</item> <item key="key_right" value="91}}{{enumfield">key_f1|92</item> <item key="key_f2" value="93}}{{enumfield">key_f3|94</item> <item key="key_f4" value="95}}{{enumfield">key_f5|96</item> <item key="key_f6" value="97}}{{enumfield">key_f7|98</item> <item key="key_f8" value="99}}{{enumfield">key_f9|100</item> <item key="key_f10" value="101}}{{enumfield">key_f11|102</item> <item key="key_f12" value="103}}{{enumfield">key_capslocktoggle|104</item> <item key="key_numlocktoggle" value="105}}{{enumfield">key_last|106</item> <item key="key_scrolllocktoggle" value="106}}{{enumfield">key_count|107</item> <item key="key_xbutton_a" value="114}}{{enumfield">key_xbutton_b|115</item> <item key="key_xbutton_x" value="116}}{{enumfield">key_xbutton_y|117</item> <item key="key_xbutton_left_shoulder" value="118}}{{enumfield">key_xbutton_right_shoulder|119</item> <item key="key_xbutton_back" value="120}}{{enumfield">key_xbutton_start|121</item> <item key="key_xbutton_stick1" value="122}}{{enumfield">key_xbutton_stick2|123</item> <item key="key_xbutton_up" value="146}}{{enumfield">key_xbutton_right|147</item> <item key="key_xbutton_down" value="148}}{{enumfield">key_xbutton_left|149</item> <item key="key_xstick1_right" value="150}}{{enumfield">key_xstick1_left|151</item> <item key="key_xstick1_down" value="152}}{{enumfield">key_xstick1_up|153</item> <item key="key_xbutton_ltrigger" value="154}}{{enumfield">key_xbutton_rtrigger|155</item> <item key="key_xstick2_right" value="156}}{{enumfield">key_xstick2_left|157</item> <item key="key_xstick2_down" value="158}}{{enumfield">key_xstick2_up|159</item>> } }}