Jump to content

Simulate events.onInputOut


pikminman
 Share

Recommended Posts

Hey guys!

I have an input event as follows:

this.jump1.events.onInputOut.add(() => this.turnOff(['jump']));

How can I simulate this event programatically? I know I can just call the inner function, but I want to actually simulate the event. Is there any way to do this?

Thanks!

Link to comment
Share on other sites

No that doesn't seem to work. The problem I'm having is that I have an `onInputOver` and an `onInputOut` on an element, however it doesn't allow the onInputOver unless there has been an onInputOut

Example:

1) User drags thumb onto element, onInputOver event fired

2) User *lifts* thumb, doesn't slide out, onInputUp fired

3) User drags thumb in again and onInputOver isn't fired until after onInputOut is

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...