public override void ScController_AfterModifierChanged(object sender, ScController.ModifierChangedArgs e) { if (State) { ScController.SetJoystickButton(State, ScController.ModifiedButton(vButtonId), vJoyTypes.Commander); } }
public override void Controller_ButtonDown(object sender, ButtonEventArgs e) { if (e.Button == ButtonId) { State = true; ScController.SetJoystickButton(State, ScController.ModifiedButton(vButtonId), vJoyTypes.Commander); } }