Garry's Mod Wiki

Revision Difference

Enums/BUTTON_CODE#516273

<cat>enum</cat> <enumeration>⤶ <enum>⤶ <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><item key="BUTTON_CODE_INVALID" value="-1</fields>⤶ ⤶ </enumeration>⤶ <items><item key="BUTTON_CODE_INVALID" value="-1</items>⤶ ⤶ </enum>⤶ <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</item> <item key="button_code_last" value="171}} {{enumfield">button_code_count|172</item>> {{:Enums/MOUSE|FieldsOnly=Yes}} {{:Enums/JOYSTICK|FieldsOnly=Yes}} }}