NumpadTriggerDevice.ReleaseKey
Skip to content
mnscript
bool NumpadTriggerDevice.ReleaseKey() 

Description ​

Releases the key on the owner of the device.

Returns ​

bool - True if the numpad key was released on the owner

Example ​

msc
using Device;

// Finds a numpad trigger with the name "My Numpad Trigger" and presses
// Activating then releasing immediately acts identically to pressing a button which has toggle mode OFF
NumpadTriggerDevice device = Device.FindNumpadTrigger("My Numpad Trigger");
device.ActivateKey();
device.ReleaseKey();