EventHandler Class Reference

Inheritance diagram for EventHandler:
[legend]
Collaboration diagram for EventHandler:
[legend]

List of all members.

Public Member Functions

 EventHandler ()
 ~EventHandler ()
bool keyPressed (const KeyEvent &arg)
bool keyReleased (const KeyEvent &arg)
bool buttonPressed (const JoyStickEvent &arg, int button)
bool buttonReleased (const JoyStickEvent &arg, int button)
bool axisMoved (const JoyStickEvent &arg, int axis)
bool povMoved (const JoyStickEvent &arg, int pov)
void displayHelp ()
 EventHandler ()
 ~EventHandler ()
bool keyPressed (const KeyEvent &arg)
bool keyReleased (const KeyEvent &arg)
bool mouseMoved (const MouseEvent &arg)
bool mousePressed (const MouseEvent &arg, MouseButtonID id)
bool mouseReleased (const MouseEvent &arg, MouseButtonID id)
bool buttonPressed (const JoyStickEvent &arg, int button)
bool buttonReleased (const JoyStickEvent &arg, int button)
bool axisMoved (const JoyStickEvent &arg, int axis)
bool povMoved (const JoyStickEvent &arg, int pov)
 EventHandler ()
 ~EventHandler ()
bool keyPressed (const KeyEvent &arg)
bool keyReleased (const KeyEvent &arg)
bool mouseMoved (const MouseEvent &arg)
bool mousePressed (const MouseEvent &arg, MouseButtonID id)
bool mouseReleased (const MouseEvent &arg, MouseButtonID id)

Private Attributes

bool configuringFF


Detailed Description

Definition at line 46 of file FFConsoleDemo.cpp.


Constructor & Destructor Documentation

EventHandler::EventHandler (  )  [inline]

Definition at line 50 of file FFConsoleDemo.cpp.

EventHandler::~EventHandler (  )  [inline]

Definition at line 51 of file FFConsoleDemo.cpp.

EventHandler::EventHandler (  )  [inline]

Definition at line 58 of file OISConsole.cpp.

EventHandler::~EventHandler (  )  [inline]

Definition at line 59 of file OISConsole.cpp.

EventHandler::EventHandler (  )  [inline]

Definition at line 28 of file SdlDemo.cpp.

EventHandler::~EventHandler (  )  [inline]

Definition at line 29 of file SdlDemo.cpp.


Member Function Documentation

bool EventHandler::keyPressed ( const KeyEvent arg  )  [inline, virtual]

Implements OIS::KeyListener.

Definition at line 53 of file FFConsoleDemo.cpp.

References appRunning, OIS::KC_ESCAPE, OIS::KC_Q, and OIS::KeyEvent::key.

bool EventHandler::keyReleased ( const KeyEvent arg  )  [inline, virtual]

Implements OIS::KeyListener.

Definition at line 61 of file FFConsoleDemo.cpp.

bool EventHandler::buttonPressed ( const JoyStickEvent arg,
int  button 
) [inline, virtual]

Implements OIS::JoyStickListener.

Definition at line 66 of file FFConsoleDemo.cpp.

bool EventHandler::buttonReleased ( const JoyStickEvent arg,
int  button 
) [inline, virtual]

Implements OIS::JoyStickListener.

Definition at line 70 of file FFConsoleDemo.cpp.

bool EventHandler::axisMoved ( const JoyStickEvent arg,
int  axis 
) [inline, virtual]

Implements OIS::JoyStickListener.

Definition at line 74 of file FFConsoleDemo.cpp.

bool EventHandler::povMoved ( const JoyStickEvent arg,
int  pov 
) [inline, virtual]

Reimplemented from OIS::JoyStickListener.

Definition at line 78 of file FFConsoleDemo.cpp.

void EventHandler::displayHelp (  )  [inline]

Definition at line 83 of file FFConsoleDemo.cpp.

bool EventHandler::keyPressed ( const KeyEvent arg  )  [inline, virtual]

Implements OIS::KeyListener.

Definition at line 60 of file OISConsole.cpp.

References OIS::EventArg::device, OIS::KeyEvent::key, and OIS::KeyEvent::text.

bool EventHandler::keyReleased ( const KeyEvent arg  )  [inline, virtual]

Implements OIS::KeyListener.

Definition at line 66 of file OISConsole.cpp.

References appRunning, OIS::KC_ESCAPE, OIS::KC_Q, and OIS::KeyEvent::key.

bool EventHandler::mouseMoved ( const MouseEvent arg  )  [inline, virtual]

Implements OIS::MouseListener.

Definition at line 71 of file OISConsole.cpp.

References OIS::Axis::abs, OIS::Axis::rel, OIS::MouseEvent::state, OIS::MouseState::X, OIS::MouseState::Y, and OIS::MouseState::Z.

bool EventHandler::mousePressed ( const MouseEvent arg,
MouseButtonID  id 
) [inline, virtual]

Implements OIS::MouseListener.

Definition at line 78 of file OISConsole.cpp.

bool EventHandler::mouseReleased ( const MouseEvent arg,
MouseButtonID  id 
) [inline, virtual]

Implements OIS::MouseListener.

Definition at line 82 of file OISConsole.cpp.

bool EventHandler::buttonPressed ( const JoyStickEvent arg,
int  button 
) [inline, virtual]

Implements OIS::JoyStickListener.

Definition at line 86 of file OISConsole.cpp.

bool EventHandler::buttonReleased ( const JoyStickEvent arg,
int  button 
) [inline, virtual]

Implements OIS::JoyStickListener.

Definition at line 90 of file OISConsole.cpp.

bool EventHandler::axisMoved ( const JoyStickEvent arg,
int  axis 
) [inline, virtual]

Implements OIS::JoyStickListener.

Definition at line 93 of file OISConsole.cpp.

References OIS::JoyStickState::mAxes, and OIS::JoyStickEvent::state.

bool EventHandler::povMoved ( const JoyStickEvent arg,
int  pov 
) [inline, virtual]

Reimplemented from OIS::JoyStickListener.

Definition at line 100 of file OISConsole.cpp.

References OIS::Pov::direction, OIS::JoyStickState::mPOV, and OIS::JoyStickEvent::state.

bool EventHandler::keyPressed ( const KeyEvent arg  )  [inline, virtual]

Implements OIS::KeyListener.

Definition at line 30 of file SdlDemo.cpp.

References OIS::EventArg::device, OIS::KeyEvent::key, OutputMessage(), and OIS::KeyEvent::text.

bool EventHandler::keyReleased ( const KeyEvent arg  )  [inline, virtual]

Implements OIS::KeyListener.

Definition at line 37 of file SdlDemo.cpp.

References appRunning, OIS::KC_ESCAPE, OIS::KC_Q, OIS::KeyEvent::key, and OutputMessage().

bool EventHandler::mouseMoved ( const MouseEvent arg  )  [inline, virtual]

Implements OIS::MouseListener.

Definition at line 48 of file SdlDemo.cpp.

References OutputMessage(), and OIS::MouseEvent::state.

bool EventHandler::mousePressed ( const MouseEvent arg,
MouseButtonID  id 
) [inline, virtual]

Implements OIS::MouseListener.

Definition at line 57 of file SdlDemo.cpp.

References OutputMessage().

bool EventHandler::mouseReleased ( const MouseEvent arg,
MouseButtonID  id 
) [inline, virtual]

Implements OIS::MouseListener.

Definition at line 63 of file SdlDemo.cpp.

References OutputMessage().


Member Data Documentation

bool EventHandler::configuringFF [private]

Definition at line 48 of file FFConsoleDemo.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Dec 1 20:13:54 2007 for OIS by  doxygen 1.5.4