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

Description ​

Gets whether the button is in toggle mode

Returns ​

bool - True if the button is in toggle mode

Example ​

msc
using Device;

ButtonDevice device = Device.FindButton("MyButton");
bool pressed = device.IsToggle(); // True if the button has toggle mode on!