How to cancel an OnAction trigger (1 Viewer)

BartEv

Portal Member
July 9, 2008
10
6
Home Country
Netherlands Netherlands
Is there a way to prevent a certain Action Event from being handled further?

Like in this example, i would like certain keys preventing to be actually handled by MP.

Code:
  public override void OnAction(Action action) {
    switch (action.wID) {
      case Action.ActionType.ACTION_KEY_PRESSED:
           if (action.m_key.KeyChar == '0') {
            /* How to stop this action, so it is not handled by MP */
          }
        break; 
   }
}

Thx...
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Yeah, I don't think you get to swallow/cancel/consume events.
     

    Users who are viewing this thread

    Top Bottom