Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::GEvent Union Reference

General low-level event structure. More...

#include <GEvent.h>

List of all members.

Public Attributes

ActiveEvent active
MouseButtonEvent button
FileDropEvent drop
ExposeEvent expose
GuiEvent gui
GuiCloseEvent guiClose
JoyAxisEvent jaxis
JoyBallEvent jball
JoyButtonEvent jbutton
JoyHatEvent jhat
KeyboardEvent key
MouseMotionEvent motion
QuitEvent quit
ResizeEvent resize
SDL_SysWMEvent syswm
uint8 type
UserEvent user


Detailed Description

General low-level event structure.

Most event processing code looks like:

  switch (event.type) {
  case GEventType::MOUSEBUTTONDOWN:
     ...
     break;
  ...
  }
  

See also:
G3D::GEventType, G3D::Widget::onEvent, GApp::onEvent, G3D::GWindow::pollEvent.
Referenced Code:
Based on libsdl's SDL_Event, which is based on X11 and Win32 events


Member Data Documentation

This is a G3D::GEventType, but is given uint8 type so that it does not call the constructor because GEvent is a union.


The documentation for this union was generated from the following file:
Generated on Thu Aug 2 11:40:45 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo