public override void KeyReleased(KeyPayload payload) { if (!Toggle) { CurrentState = false; VJoy.SetBtn(CurrentState, JoystickId, ButtonId); DrawState(CurrentState); } }
public override void KeyPressed(KeyPayload payload) { if (!Toggle) { CurrentState = true; } else { CurrentState = !CurrentState; } VJoy.SetBtn(CurrentState, JoystickId, ButtonId); DrawState(CurrentState); }