Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Event not firing

  • #1, by darren-beckett 11 years ago Zitieren
    I've noticed an issue whilst i've been trying to work around a separate issue.
    The reason for this workaround was due to the LeftClick event firing before the Double-Click event gets recognised (See this issue).

    I've therefore created my own double-click event by waiting for another mouse click before firing off the actions.

    But, I've found that if the character is already stood at the object destination/position, then the Left mouse button click action does not get fired before the Objects (Execution at Destination) command action. So my work around fails, because the Object event gets fired, before the mouse event (Which is where i've put code to handle the waiting for a second mouse click).

    Any suggestions would be great.
  • #2, by darren-beckett 11 years ago Zitieren
    Would anybody be able to confirm that this is a bug that will be fixed in a new release? Or any suggestions on a solution?
  • #3, by afrlme 11 years ago Zitieren
    Hmm are you talking about left click (immediate) vs a command at execution action?

    Ah wait... I see! You've added the actions Simon told you about into the left click action inside of the mouse properties tab?

    Try adding a pause inside the left click action of your objects & then an if query to determine if double click was registered after say 500ms & if not then call the single click action for this object else call the doubleclick action.
  • #4, by darren-beckett 11 years ago Zitieren
    Thanks for your reply, this led me to a fix.
  • #5, by afrlme 11 years ago Zitieren
    No problem. How about sharing your fix for anyone else who might come across the same issue? wink
  • #6, by darren-beckett 11 years ago Zitieren
    My fix was quite specific for what I've done to override the called actions depending on the count of clicks.

    All objects that have a DoubleClick action need to 'Quit the current action' (within the LeftClick action) if we are currently waiting for a DoubleClick.