Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

io.h File Reference

Interface to system-specific OpenGL and input routines. More...

#include <string>
#include "menus.h"
#include "config.h"

Go to the source code of this file.

Classes

class  IO_Key
 a key press More...
class  IO_Event
 a window event More...
struct  IO_Position
 Mouse position. More...
class  IO_Window
 An OpenGL window with associated input mechanisms. More...

Defines

#define POLL_FOR_MOUSE_MOVES
#define IO_CONTROL   0x01
#define IO_ALT   0x02
#define IO_SHIFT   0x04
#define IO_CAPS   0x08

Typedefs

typedef void(* IO_EventHandler )(IO_Window *win, const IO_Event &e)
 event handler

Enumerations

enum  IO_EventId {
  IO_None = 0, IO_Initialize, IO_Resize, IO_Render,
  IO_Exit, IO_KeyPress, IO_KeyRelease, IO_MouseMove,
  IO_MenuEvent
}
 window events
enum  IO_KeyId {
  IO_Invalid = 0x00, IO_Escape, IO_F1, IO_F2,
  IO_F3, IO_F4, IO_F5, IO_F6,
  IO_F7, IO_F8, IO_F9, IO_F10,
  IO_F11, IO_F12, IO_PrintScreen, IO_Pause,
  IO_Tilde, IO_1, IO_2, IO_3,
  IO_4, IO_5, IO_6, IO_7,
  IO_8, IO_9, IO_0, IO_Dash,
  IO_Equals, IO_BackSpace, IO_Tab, IO_Q,
  IO_W, IO_E, IO_R, IO_T,
  IO_Y, IO_U, IO_I, IO_O,
  IO_P, IO_LBracket, IO_RBracket, IO_BackSlash,
  IO_A, IO_S, IO_D, IO_F,
  IO_G, IO_H, IO_J, IO_K,
  IO_L, IO_Semicolon, IO_Apostrophe, IO_Enter,
  IO_Z, IO_X, IO_C, IO_V,
  IO_B, IO_N, IO_M, IO_Comma,
  IO_Period, IO_Slash, IO_Space, IO_Insert,
  IO_Home, IO_PageUp, IO_Delete, IO_End,
  IO_PageDown, IO_Up, IO_Down, IO_Left,
  IO_Right, IO_KP_Slash, IO_KP_Star, IO_KP_Dash,
  IO_KP_Plus, IO_KP_Enter, IO_KP_Home, IO_KP_Up,
  IO_KP_PageUp, IO_KP_Left, IO_KP_Right, IO_KP_End,
  IO_KP_Down, IO_KP_PageDown, IO_KP_Insert, IO_KP_Delete,
  IO_KP_0, IO_KP_1, IO_KP_2, IO_KP_3,
  IO_KP_4, IO_KP_5, IO_KP_6, IO_KP_7,
  IO_KP_8, IO_KP_9, IO_KP_Period, IO_Mouse0,
  IO_Mouse1, IO_Mouse2, IO_Mouse3, IO_Mouse4,
  IO_MWheelUp, IO_MWheelDown, IO_Joystick1, IO_Joystick2,
  IO_Joystick3, IO_Joystick4, IO_Joystick5, IO_Joystick6,
  IO_Joystick7, IO_Joystick8, IO_Joystick9, IO_JoystickAxis1,
  IO_JoystickAxis2, IO_JoystickAxis3, IO_JoystickAxis4, IO_JoystickAxis5,
  IO_JoystickAxis6, IO_JoystickSlider, IO_NumKeys
}
enum  IO_MouseMode { IO_Absolute, IO_Relative }
 Mouse modes. Relative means mouse movement is reported relative to the last query, as if the mouse snapped back to (0,0) after every query. Absolute reports the position of the mouse in the window, relative only to the upper left corner of the window.

Functions

void IO_initialize_window_system (int argc, char **argv, char **environ)
 Initialize the windowing system. Should be called exactly once, before an IO_Window is created.
void DisplayError (std::string error)
 Display an error to the user.


Detailed Description

Interface to system-specific OpenGL and input routines.


Generated on Fri Jan 12 14:15:02 2007 for Construct by  doxygen 1.4.3-20050530