Mouse release state

edited May 2011 in General discussions
Can I simply configure action for mouse (touch) release? Not only the click? Specially for iPhone I'd like to have opinion to click button, but if I accidentally click wrong one, I can always release button out of it's range and everything is ok.

I probably know how to do this by program, but I'd like to ask if there's simpler way first :)

Comments

  • edited May 2011
    When you test for an input, you can test for its current status and if this status just changed.

    So, for testing for "releasing your touch", you should do:
    If(!orxInput_IsActive("Action") && orxInput_HasNewStatus("Action"))
    {
      // Action has been released
    }
    

    If you want to handle multitouch thoug you'll have to listen to their events (orxSYSTEM_EVENT_TOUCH_*).
Sign In or Register to comment.