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


Public Methods | |
| 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=0 |
| 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 Methods | |
| char | getKeyChar (int keyCode, long modifiers=0) |
Protected Methods | |
| 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) |
| void | setupKeyChars () |
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. | |
Static Protected Attributes | |
| bool | sKeysInitialised = false |
Definition at line 218 of file OgreInput.h.
|
|
Definition at line 38 of file OgreInput.cpp. References mCursor, mEventQueue, mModifiers, mUseBufferedKeys, mUseBufferedMouse, setupKeyChars(), and sKeysInitialised. |
|
|
Definition at line 78 of file OgreInput.cpp. References mCursor. |
|
|
Adds a mouse motion listener to the cursor object. This keeps the Cursor object hidden. Definition at line 146 of file OgreInput.cpp. References Ogre::MouseMotionTarget::addMouseMotionListener(), and mCursor. Referenced by Ogre::EventProcessor::addCursorMoveListener(). |
|
|
Captures the state of all the input devices.
Implemented in Ogre::SDLInput, Ogre::Win32Input, and Ogre::Win32Input8. Referenced by Ogre::EventProcessor::frameStarted(). |
|
||||||||||||
|
Definition at line 123 of file OgreInput.cpp. References mEventQueue, mModifiers, and Ogre::EventQueue::push(). Referenced by keyChanged(). |
|
||||||||||||
|
Creates a MouseEvent that first gets processed by the cursor, then gets pushed on the queue.
Definition at line 104 of file OgreInput.cpp. References Ogre::Cursor::getRelX(), Ogre::Cursor::getRelY(), Ogre::Cursor::getRelZ(), Ogre::Cursor::getX(), Ogre::Cursor::getY(), Ogre::Cursor::getZ(), mCursor, mEventQueue, mModifiers, Ogre::Cursor::processEvent(), and Ogre::EventQueue::push(). Referenced by mouseMoved(), and triggerMouseButton(). |
|
||||||||||||
|
Definition at line 205 of file OgreInput.cpp. References Ogre::KEYCODE(), and Ogre::sKeyChars. |
|
|
Retrieves the absolute mouse position on the X (horizontal) axis.
Implemented in Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the absolute mouse position on the Y (vertical) axis.
Implemented in Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the absolute mouse position on the Z (mouse wheel) axis.
Implemented in Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the state of a mouse button.
Implemented in Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the relative position of the mouse when capture was called relative to the last time.
Reimplemented in Ogre::Win32Input. Definition at line 272 of file OgreInput.h. |
|
|
Retrieves the relative position of the mouse when capture was called relative to the last time.
Reimplemented in Ogre::Win32Input. Definition at line 276 of file OgreInput.h. |
|
|
Retrieves the relative position of the mouse when capture was called relative to the last time.
Definition at line 280 of file OgreInput.h. |
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the X (horizontal) axis.
Implemented in Ogre::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the Y (vertical) axis.
Implemented in 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::SDLInput, and Ogre::Win32Input8. |
|
|
Retrieves the current state of the mouse.
Implemented in Ogre::SDLInput, and Ogre::Win32Input8. |
|
||||||||||||||||||||
|
Initialise the input system.
Implemented in Ogre::SDLInput, Ogre::Win32Input, and Ogre::Win32Input8. Referenced by Ogre::EventProcessor::initialise(). |
|
|
Determines if the specified key is currently depressed.
Implemented in Ogre::SDLInput, and Ogre::Win32Input8. |
|
||||||||||||
|
Definition at line 157 of file OgreInput.cpp. References createKeyEvent(), Ogre::KC_LCONTROL, Ogre::KC_LMENU, Ogre::KC_LSHIFT, Ogre::KC_RCONTROL, Ogre::KC_RMENU, Ogre::KC_RSHIFT, and mModifiers. Referenced by Ogre::SDLInput::processBufferedKeyboard(), and Ogre::Win32Input8::readBufferedKeyboardData(). |
|
|
Creates mouse moved or dragged events depending if any button is pressed.
Definition at line 132 of file OgreInput.cpp. References createMouseEvent(), and mModifiers. Referenced by Ogre::SDLInput::processBufferedMouse(), and Ogre::Win32Input8::readBufferedMouseData(). |
|
|
Remove a mouse motion listener to the cursor object. This keeps the Cursor object hidden. Definition at line 151 of file OgreInput.cpp. References mCursor, and Ogre::MouseMotionTarget::removeMouseMotionListener(). Referenced by Ogre::EventProcessor::removeCursorMoveListener(). |
|
||||||||||||
|
Reimplemented in Ogre::Win32Input8. Definition at line 70 of file OgreInput.cpp. References mUseBufferedKeys, and mUseBufferedMouse. |
|
|
||||||||||||
|
Creates mouse pressed, released, and clicked events.
Definition at line 87 of file OgreInput.cpp. References createMouseEvent(), and mModifiers. Referenced by Ogre::SDLInput::processBufferedMouse(), and Ogre::Win32Input8::readBufferedMouseData(). |
|
||||||||||||||||
|
Tells the reader to use buffered input and update the passed in queue.
Definition at line 53 of file OgreInput.cpp. References mCursor, mEventQueue, mUseBufferedKeys, and mUseBufferedMouse. Referenced by Ogre::EventProcessor::initialise(). |
|
|
Internal Cursor object.
Definition at line 331 of file OgreInput.h. Referenced by addCursorMoveListener(), createMouseEvent(), InputReader(), Ogre::SDLInput::processBufferedMouse(), Ogre::Win32Input8::readBufferedMouseData(), removeCursorMoveListener(), useBufferedInput(), and ~InputReader(). |
|
|
EventQueue is used for buffered input support.
Definition at line 334 of file OgreInput.h. Referenced by createKeyEvent(), createMouseEvent(), InputReader(), Ogre::SDLInput::SDLInput(), useBufferedInput(), and Ogre::Win32Input8::Win32Input8(). |
|
|
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 321 of file OgreInput.h. Referenced by Ogre::Win32Input8::capture(), createKeyEvent(), createMouseEvent(), Ogre::Win32Input8::getKeyModifiers(), InputReader(), keyChanged(), mouseMoved(), and triggerMouseButton(). |
|
|
The mouse state in immediate mode.
Definition at line 342 of file OgreInput.h. Referenced by Ogre::SDLInput::capture(), Ogre::Win32Input8::captureMouse(), Ogre::Win32Input8::getMouseAbsX(), Ogre::Win32Input8::getMouseAbsY(), Ogre::Win32Input8::getMouseAbsZ(), Ogre::Win32Input8::getMouseButton(), Ogre::SDLInput::getMouseButton(), Ogre::Win32Input8::getMouseRelX(), Ogre::Win32Input8::getMouseRelY(), Ogre::Win32Input8::getMouseRelZ(), Ogre::Win32Input8::getMouseState(), Ogre::SDLInput::getMouseState(), and Ogre::Win32Input8::initialiseImmediateMouse(). |
|
|
Wether to use buffering input support - buffering support relies on using an EventQueue.
Definition at line 339 of file OgreInput.h. Referenced by Ogre::SDLInput::capture(), InputReader(), Ogre::Win32Input8::setBufferedInput(), setBufferedInput(), and useBufferedInput(). |
|
|
Wether to use buffering input support - buffering support relies on using an EventQueue.
Definition at line 339 of file OgreInput.h. Referenced by Ogre::SDLInput::capture(), InputReader(), Ogre::Win32Input8::setBufferedInput(), setBufferedInput(), and useBufferedInput(). |
|
|
Definition at line 36 of file OgreInput.cpp. Referenced by InputReader(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:17:57 2004