Garry's Mod Wiki

Revision Difference

Enums/BUTTON_CODE#516547

<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</items>⤶ <items>⤶ <item key="BUTTON_CODE_INVALID" value="-1"></item>⤶ ⤶ <item key="BUTTON_CODE_NONE" value="0"></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> ⤶ ⤶ <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}} }}