Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

The types of events backends may generate.

See also:
Event
Todo:
Merge EVENT_LBUTTONDOWN, EVENT_RBUTTONDOWN and EVENT_WHEELDOWN; likewise EVENT_LBUTTONUP, EVENT_RBUTTONUP, EVENT_WHEELUP. To do that, we just have to add a field to the Event which indicates which button was pressed.
Enumerator:
EVENT_KEYDOWN  A key was pressed, details in Event::kbd.
EVENT_KEYUP  A key was released, details in Event::kbd.
EVENT_MOUSEMOVE  The mouse moved, details in Event::mouse.
EVENT_PREDICTIVE_DIALOG  The backend requests the agi engine's predictive dialog to be shown. TODO: Fingolfin suggests that it would be of better value to expand on this notion by generalizing its use. For example the backend could use events to ask for the save game dialog or to pause the engine. An associated enumerated type can accomplish this.

Definition at line 45 of file events.h.

               {
      EVENT_INVALID = 0,
      /** A key was pressed, details in Event::kbd. */
      EVENT_KEYDOWN = 1,
      /** A key was released, details in Event::kbd. */
      EVENT_KEYUP = 2,
      /** The mouse moved, details in Event::mouse. */
      EVENT_MOUSEMOVE = 3,
      EVENT_LBUTTONDOWN = 4,
      EVENT_LBUTTONUP = 5,
      EVENT_RBUTTONDOWN = 6,
      EVENT_RBUTTONUP = 7,
      EVENT_WHEELUP = 8,
      EVENT_WHEELDOWN = 9,
      EVENT_MBUTTONDOWN = 13,
      EVENT_MBUTTONUP = 14,

      EVENT_MAINMENU = 15,
      EVENT_RTL = 16,
      EVENT_MUTE = 17,

      EVENT_QUIT = 10,
      EVENT_SCREEN_CHANGED = 11,
      /**
       * The backend requests the agi engine's predictive dialog to be shown.
       * TODO: Fingolfin suggests that it would be of better value to expand
       * on this notion by generalizing its use. For example the backend could
       * use events to ask for the save game dialog or to pause the engine.
       * An associated enumerated type can accomplish this.
       **/
      EVENT_PREDICTIVE_DIALOG = 12
};


Generated by  Doxygen 1.6.0   Back to index