event .mode .set  (  Mode  )  
                           
Description :

This instruction changes the running mode of events.

There are two possible running modes: EVENT_MODE_1 and EVENT_MODE_2.

To illustrate the difference between these two modes, let us consider the example of the left and right mouse buttons.

Consider what happens when a user first presses the left button, then the right one, and then releases the left button, then the right one :

Results in MODE 1
     PRESS_BUTTON_LEFT
     PRESS_BUTTON_LEFT+PRESS_BUTTON_RIGHT
     PRESS_BUTTON_RIGHT
     RELEASE_BUTTON

Results in MODE 2 (default mode)
     PRESS_BUTTON_LEFT
     PRESS_BUTTON_RIGHT
     RELEASE_BUTTON_LEFT
     RELEASE_BUTTON_RIGHT

Parameters :

  • EVENT_MODE_1
    EVENT_MODE_2 (Default)
    EVENT_MODE_1+EVENT_SCAN_HIDE
    EVENT_MODE_2+EVENT_SCAN_HIDE

Notes :


The parameter EVENT_SCAN_HIDE can be added to these two modes to allow hidden elements to generate events.

Examples :