Garry's Mod Wiki

Revision Difference

Enums/BUTTON_CODE#516098

<cat>enum</cat> <enumeration> <description> Encompasses the range of <page>KEY</page>, <page>MOUSE</page> and <page>JOYSTICK</page>, all of which can be used by: * <page>input.IsButtonDown</page> * <page>input.LookupKeyBinding</page> * <page>input.GetKeyName</page> * <page>input.GetKeyCode</page> * <page>GM:PlayerButtonDown</page> * <page>GM:PlayerButtonUp</page> </description> <fields>{{EnumField|BUTTON_CODE_INVALID|-1</fields>⤶ <fields><item key="BUTTON_CODE_INVALID" value="-1</fields>⤶ </enumeration> <enumfield|button_code_none|0}}⤶ {{enumfield|button_code_last|171}} {{enumfield|button_code_count|172}}>⤶ <enumfield">button_code_none|0</item>⤶ <item key="button_code_last" value="171}} {{enumfield">button_code_count|172</item>>⤶ <appendedenums>{{:Enums/KEY|FieldsOnly=Yes</appendedenums> ⤶ </enumfield|button_code_none|0}}⤶ {{enumfield|button_code_last|171}} {{enumfield|button_code_count|172}}>⤶ ⤶ </enumfield">button_code_none|0</item>⤶ <item key="button_code_last" value="171}} {{enumfield">button_code_count|172</item>>⤶ {{:Enums/MOUSE|FieldsOnly=Yes}} {{:Enums/JOYSTICK|FieldsOnly=Yes}} }}