Garry's Mod Wiki

Revision Difference

Enums/BUTTON_CODE#516402

<cat>enum</cat> <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> <items> <item key="BUTTON_CODE_INVALID" value="-">1</item>⤶ <item key="BUTTON_CODE_INVALID" value="-1"></item>⤶ <item key="BUTTON_CODE_NONE" value="0"></item> <item key="BUTTON_CODE_LAST" value="1">71</item>⤶ <item key="BUTTON_CODE_COUNT" value="1">72</item>⤶ <item key="BUTTON_CODE_LAST" value="171"></item>⤶ <item key="BUTTON_CODE_COUNT" value="172"></item>⤶ </items> <appendedenums>{{:Enums/KEY|FieldsOnly=Yes</appendedenums> </enum> {{:Enums/MOUSE|FieldsOnly=Yes}} {{:Enums/JOYSTICK|FieldsOnly=Yes}} }}