ButtonDevice class ​
No description available
Functions ​
mnscript
number ButtonDevice.GetKeyNumber()
- Gets the buttons key number (See https://wiki.facepunch.com/gmod/Enums/KEY)
- Gets the name of the device
- Gets whether the button is pressed down
- Gets whether the button is in toggle mode
- Returns whether the button is valid
mnscript
ButtonDevice.SetKeyNumber(number)
- Sets the buttons key number (See https://wiki.facepunch.com/gmod/Enums/KEY)