The Game Engine  1
Input.h File Reference
#include "fns.h"
#include <SDL/SDL.h>
#include <map>
#include <set>
+ Include dependency graph for Input.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Input
 Input handler to separate input from system. More...
 
struct  Input::MouseState
 Helper container to handle mouse clicks. More...
 

Enumerations

enum  JoyStick { JoyLeft, JoyRight, DPad, Triggers }
 Different types of sticks. More...
 
enum  JoyButton {
  A, B, X, Y,
  LB, RB, Select, Start,
  LClick, RCLick, Center
}
 Different types of JoyButtons. More...
 
enum  MouseButton {
  MouseLeft, MouseMiddle, MouseRight, MouseWheelUp,
  MouseWheelDown, MouseMouseButton
}
 Different types of MouseButtons. More...
 

Enumeration Type Documentation

enum JoyButton

Different types of JoyButtons.

Enumerator
A 
B 
X 
Y 
LB 
RB 
Select 
Start 
LClick 
RCLick 
Center 

Definition at line 21 of file Input.h.

enum JoyStick

Different types of sticks.

Enumerator
JoyLeft 
JoyRight 
DPad 
Triggers 

Definition at line 14 of file Input.h.

Different types of MouseButtons.

  • JoyLeft, Rigth, Middle are the standard buttons
  • Button corresponds to the alt buttons a mouse can have and will require an index passed in
    Todo:
    the alternate buttons don't exist to sdl atm
Enumerator
MouseLeft 
MouseMiddle 
MouseRight 
MouseWheelUp 
MouseWheelDown 
MouseMouseButton 

Definition at line 30 of file Input.h.