#include <OgreInput.h>
Inheritance diagram for Ogre::InputReader:

Public Methods | |
| InputReader () | |
| virtual | ~InputReader () |
| void | useBufferedInput (EventQueue *pEventQueue) |
| Tells the reader to use buffered input and update the passed in queue. More... | |
| virtual void | initialise (RenderWindow *pWindow, bool useKeyboard=true, bool useMouse=true, bool useGameController=false)=0 |
| Initialise the input system. More... | |
| virtual void | capture ()=0 |
| Captures the state of all the input devices. More... | |
| virtual bool | isKeyDown (KeyCode kc) const=0 |
| Determines if the specified key is currently depressed. More... | |
| virtual long | getMouseRelativeX () const |
| Retrieves the relative position of the mouse when capture was called relative to the last time. More... | |
| virtual long | getMouseRelativeY () const |
| Retrieves the relative position of the mouse when capture was called relative to the last time. More... | |
| virtual long | getMouseRelativeZ () const |
| Retrieves the relative position of the mouse when capture was called relative to the last time. More... | |
| virtual long | getMouseRelX () const=0 |
| Retrieves the relative (compared to the last input poll) mouse movement on the X (horizontal) axis. More... | |
| virtual long | getMouseRelY () const=0 |
| Retrieves the relative (compared to the last input poll) mouse movement on the Y (vertical) axis. More... | |
| virtual long | getMouseRelZ () const=0 |
| Retrieves the relative (compared to the last input poll) mouse movement on the Z (mouse wheel) axis. More... | |
| virtual long | getMouseAbsX () const=0 |
| Retrieves the absolute mouse position on the X (horizontal) axis. More... | |
| virtual long | getMouseAbsY () const=0 |
| Retrieves the absolute mouse position on the Y (vertical) axis. More... | |
| virtual long | getMouseAbsZ () const=0 |
| Retrieves the absolute mouse position on the Z (mouse wheel) axis. More... | |
| virtual void | getMouseState (MouseState &state) const=0 |
| Retrieves the current state of the mouse. More... | |
| virtual bool | getMouseButton (uchar button) const=0 |
| Retrieves the state of a mouse button. More... | |
| void | addCursorMoveListener (MouseMotionListener *c) |
| Adds a mouse motion listener to the cursor object. More... | |
| void | removeCursorMoveListener (MouseMotionListener *c) |
| Remove a mouse motion listener to the cursor object. More... | |
Protected Methods | |
| void | mouseMoved () |
| Creates mouse moved or dragged events depending if any button is pressed. More... | |
| void | createMouseEvent (int id, int button) |
| Creates a MouseEvent that first gets processed by the cursor, then gets pushed on the queue. More... | |
| void | triggerMouseButton (int nMouseCode, bool mousePressed) |
| Creates mouse pressed, released, and clicked events. More... | |
Protected Attributes | |
| long | mModifiers |
| The modifiers are a binary flags that represent what buttons are pressed, and what key modifiers are down (e.g. More... | |
| Cursor * | mCursor |
| Internal Cursor object. More... | |
| EventQueue * | mEventQueue |
| EventQueue is used for buffered input support. More... | |
| bool | mUseBuffered |
| Wether to use buffering input support - buffering support relies on using an EventQueue. More... | |
| MouseState | mMouseState |
| The mouse state in immediate mode. More... | |
|
|
|
|
|
|
|
|
Adds a mouse motion listener to the cursor object. This keeps the Cursor object hidden. |
|
|
Captures the state of all the input devices.
Implemented in Ogre::SDLInput. |
|
||||||||||||
|
Creates a MouseEvent that first gets processed by the cursor, then gets pushed on the queue.
|
|
|
Retrieves the absolute mouse position on the X (horizontal) axis.
Implemented in Ogre::SDLInput. |
|
|
Retrieves the absolute mouse position on the Y (vertical) axis.
Implemented in Ogre::SDLInput. |
|
|
Retrieves the absolute mouse position on the Z (mouse wheel) axis.
Implemented in Ogre::SDLInput. |
|
|
Retrieves the state of a mouse button.
Implemented in Ogre::SDLInput. |
|
|
Retrieves the relative position of the mouse when capture was called relative to the last time.
Reimplemented in Ogre::Win32Input. |
|
|
Retrieves the relative position of the mouse when capture was called relative to the last time.
Reimplemented in Ogre::Win32Input. |
|
|
Retrieves the relative position of the mouse when capture was called relative to the last time.
|
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the X (horizontal) axis.
Implemented in Ogre::SDLInput. |
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the Y (vertical) axis.
Implemented in Ogre::SDLInput. |
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the Z (mouse wheel) axis.
Implemented in Ogre::SDLInput. |
|
|
Retrieves the current state of the mouse.
Implemented in Ogre::SDLInput. |
|
||||||||||||||||||||
|
Initialise the input system.
Implemented in Ogre::SDLInput. |
|
|
Determines if the specified key is currently depressed.
Implemented in Ogre::SDLInput. |
|
|
Creates mouse moved or dragged events depending if any button is pressed.
|
|
|
Remove a mouse motion listener to the cursor object. This keeps the Cursor object hidden. |
|
||||||||||||
|
Creates mouse pressed, released, and clicked events.
|
|
|
Tells the reader to use buffered input and update the passed in queue.
|
|
|
Internal Cursor object.
|
|
|
EventQueue is used for buffered input support.
|
|
|
The modifiers are a binary flags that represent what buttons are pressed, and what key modifiers are down (e.g. shift/alt). |
|
|
The mouse state in immediate mode.
|
|
|
Wether to use buffering input support - buffering support relies on using an EventQueue.
|
Copyright © 2002 by The OGRE Team