ButtonDevice.IsPressed
Skip to content
mnscript
bool ButtonDevice.IsPressed() 

Description ​

Gets whether the button is pressed down

Returns ​

bool - True if the button is pressed down

Example ​

msc
using Device;

ButtonDevice device = Device.FindButton("MyButton");
bool pressed = device.IsPressed(); // True if the button is pressed down!