Garry's Mod Wiki

Revision Difference

Enums/BUTTON_CODE#514543

<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>⤶ ⤶ </enumeration>⤶ ⤶ ⤶ <enumfield|button_code_none|0}}⤶ {{enumfield|button_code_last|171}}⤶ {{enumfield|button_code_count|172}}>⤶ <appendedenums>{{:Enums/KEY|FieldsOnly=Yes</appendedenums>⤶ ⤶ </enumfield|button_code_none|0}}⤶ {{enumfield|button_code_last|171}}⤶ {{enumfield|button_code_count|172}}>⤶ ⤶ ⤶ {{:Enums/MOUSE|FieldsOnly=Yes}}⤶ {{:Enums/JOYSTICK|FieldsOnly=Yes}}⤶ }}