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

Public Member Functions | |
| InputReader () | |
| virtual | ~InputReader () |
| void | useBufferedInput (EventQueue *pEventQueue, bool keys=true, bool mouse=true) |
| Tells the reader to use buffered input and update the passed in queue. | |
| virtual void | setBufferedInput (bool keys, bool mouse) |
| virtual void | initialise (RenderWindow *pWindow, bool useKeyboard=true, bool useMouse=true, bool useGameController=false)=0 |
| Initialise the input system. | |
| virtual void | capture ()=0 |
| Captures the state of all the input devices. | |
| virtual bool | isKeyDown (KeyCode kc) const |
| Determines if the specified key is currently depressed. | |
| virtual long | getMouseRelativeX () const |
| Retrieves the relative position of the mouse when capture was called relative to the last time. | |
| virtual long | getMouseRelativeY () const |
| Retrieves the relative position of the mouse when capture was called relative to the last time. | |
| virtual long | getMouseRelativeZ () const |
| Retrieves the relative position of the mouse when capture was called relative to the last time. | |
| virtual long | getMouseRelX () const=0 |
| Retrieves the relative (compared to the last input poll) mouse movement on the X (horizontal) axis. | |
| virtual long | getMouseRelY () const=0 |
| Retrieves the relative (compared to the last input poll) mouse movement on the Y (vertical) axis. | |
| virtual long | getMouseRelZ () const=0 |
| Retrieves the relative (compared to the last input poll) mouse movement on the Z (mouse wheel) axis. | |
| virtual long | getMouseAbsX () const=0 |
| Retrieves the absolute mouse position on the X (horizontal) axis. | |
| virtual long | getMouseAbsY () const=0 |
| Retrieves the absolute mouse position on the Y (vertical) axis. | |
| virtual long | getMouseAbsZ () const=0 |
| Retrieves the absolute mouse position on the Z (mouse wheel) axis. | |
| virtual void | getMouseState (MouseState &state) const=0 |
| Retrieves the current state of the mouse. | |
| virtual bool | getMouseButton (uchar button) const=0 |
| Retrieves the state of a mouse button. | |
| void | addCursorMoveListener (MouseMotionListener *c) |
| Adds a mouse motion listener to the cursor object. | |
| void | removeCursorMoveListener (MouseMotionListener *c) |
| Remove a mouse motion listener to the cursor object. | |
Static Public Member Functions | |
| char | getKeyChar (int keyCode, long modifiers=0) |
Protected Types | |
| typedef std::set< KeyCode > | BufferedKeysDownSet |
| Set of all the keys currently depressed based on buffered input events. | |
Protected Member Functions | |
| void | mouseMoved () |
| Creates mouse moved or dragged events depending if any button is pressed. | |
| void | createMouseEvent (int id, int button) |
| Creates a MouseEvent that first gets processed by the cursor, then gets pushed on the queue. | |
| void | triggerMouseButton (int nMouseCode, bool mousePressed) |
| Creates mouse pressed, released, and clicked events. | |
| void | createKeyEvent (int id, int key) |
| void | keyChanged (int key, bool down) |
| virtual bool | isKeyDownImmediate (KeyCode kc) const=0 |
| Return whether a key is down in immediate mode. | |
Protected Attributes | |
| long | mModifiers |
| The modifiers are a binary flags that represent what buttons are pressed, and what key modifiers are down (e.g. | |
| Cursor * | mCursor |
| Internal Cursor object. | |
| EventQueue * | mEventQueue |
| EventQueue is used for buffered input support. | |
| bool | mUseBufferedKeys |
| Wether to use buffering input support - buffering support relies on using an EventQueue. | |
| bool | mUseBufferedMouse |
| Wether to use buffering input support - buffering support relies on using an EventQueue. | |
| MouseState | mMouseState |
| The mouse state in immediate mode. | |
| BufferedKeysDownSet | mBufferedKeysDown |
Definition at line 212 of file OgreInput.h.
|
|
Set of all the keys currently depressed based on buffered input events.
Definition at line 337 of file OgreInput.h. |
|
|
|
|
|
|
|
|
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::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
||||||||||||
|
|
|
||||||||||||
|
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::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the absolute mouse position on the Y (vertical) axis.
Implemented in Ogre::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the absolute mouse position on the Z (mouse wheel) axis.
Implemented in Ogre::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the state of a mouse button.
Implemented in Ogre::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the relative position of the mouse when capture was called relative to the last time.
Definition at line 266 of file OgreInput.h. |
|
|
Retrieves the relative position of the mouse when capture was called relative to the last time.
Definition at line 270 of file OgreInput.h. |
|
|
Retrieves the relative position of the mouse when capture was called relative to the last time.
Definition at line 274 of file OgreInput.h. |
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the X (horizontal) axis.
Implemented in Ogre::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the Y (vertical) axis.
Implemented in Ogre::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the Z (mouse wheel) axis.
Implemented in Ogre::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the current state of the mouse.
Implemented in Ogre::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
||||||||||||||||||||
|
Initialise the input system.
Implemented in Ogre::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Determines if the specified key is currently depressed.
|
|
|
Return whether a key is down in immediate mode.
Implemented in Ogre::GLXInput, Ogre::SDLInput, and Ogre::Win32Input8. |
|
||||||||||||
|
|
|
|
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. |
|
||||||||||||
|
Reimplemented in Ogre::Win32Input8. |
|
||||||||||||
|
Creates mouse pressed, released, and clicked events.
|
|
||||||||||||||||
|
Tells the reader to use buffered input and update the passed in queue.
|
|
|
Definition at line 338 of file OgreInput.h. |
|
|
Internal Cursor object.
Definition at line 323 of file OgreInput.h. |
|
|
EventQueue is used for buffered input support.
Definition at line 326 of file OgreInput.h. |
|
|
The modifiers are a binary flags that represent what buttons are pressed, and what key modifiers are down (e.g. shift/alt). Definition at line 315 of file OgreInput.h. |
|
|
The mouse state in immediate mode.
Definition at line 334 of file OgreInput.h. |
|
|
Wether to use buffering input support - buffering support relies on using an EventQueue.
Definition at line 331 of file OgreInput.h. |
|
|
Wether to use buffering input support - buffering support relies on using an EventQueue.
Definition at line 331 of file OgreInput.h. |
Copyright © 2000-2005 by The OGRE Team
Last modified Sun Nov 20 12:37:04 2005