#include <OgreSDLInput.h>
Inheritance diagram for Ogre::SDLInput:

Public Member Functions | |
| SDLInput () | |
| virtual | ~SDLInput () |
| void | initialise (RenderWindow *pWindow, bool useKeyboard=true, bool useMouse=true, bool useGameController=false) |
| Initialise the input system. | |
| void | capture () |
| Captures the state of all the input devices. | |
| void | setGrabMode (GrabMode mode) |
| Sets how to grab the mouse. | |
| virtual long | getMouseRelX () const |
| Retrieves the relative (compared to the last input poll) mouse movement on the X (horizontal) axis. | |
| virtual long | getMouseRelY () const |
| Retrieves the relative (compared to the last input poll) mouse movement on the Y (vertical) axis. | |
| virtual long | getMouseRelZ () const |
| Retrieves the relative (compared to the last input poll) mouse movement on the Z (mouse wheel) axis. | |
| virtual long | getMouseAbsX () const |
| Retrieves the absolute mouse position on the X (horizontal) axis. | |
| virtual long | getMouseAbsY () const |
| Retrieves the absolute mouse position on the Y (vertical) axis. | |
| virtual long | getMouseAbsZ () const |
| Retrieves the absolute mouse position on the Z (mouse wheel) axis. | |
| virtual void | getMouseState (MouseState &state) const |
| Retrieves the current state of the mouse. | |
| virtual bool | getMouseButton (uchar button) const |
| Retrieves the state of a mouse button. | |
| 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 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. | |
| 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) |
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 |
Private Types | |
| typedef std::map< SDLKey, KeyCode > | InputKeyMap |
Private Member Functions | |
| void | processBufferedKeyboard () |
| void | processBufferedMouse () |
| void | _grabMouse () |
| void | _releaseMouse () |
| bool | isKeyDownImmediate (KeyCode kc) const |
| Return whether a key is down in immediate mode. | |
Private Attributes | |
| Uint8 * | mKeyboardBuffer |
| int | mMaxKey |
| int | mMouseX |
| int | mMouseY |
| int | mMouseRelativeX |
| int | mMouseRelativeY |
| int | mMouseRelativeZ |
| Real | mScale |
| Uint8 | mMouseKeys |
| bool | _visible |
| bool | mMouseGrabbed |
| bool | mUseMouse |
| bool | mGrabMouse |
| bool | mMouseLeft |
| int | mGrabMode |
| InputKeyMap | _key_map |
| bool | warpMouse |
Static Private Attributes | |
| const unsigned int | mWheelStep = 60 |
|
|
Set of all the keys currently depressed based on buffered input events.
Definition at line 337 of file OgreInput.h. |
|
|
Definition at line 98 of file OgreSDLInput.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Adds a mouse motion listener to the cursor object. This keeps the Cursor object hidden. |
|
|
Captures the state of all the input devices.
Implements Ogre::InputReader. |
|
||||||||||||
|
|
|
||||||||||||
|
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.
Implements Ogre::InputReader. |
|
|
Retrieves the absolute mouse position on the Y (vertical) axis.
Implements Ogre::InputReader. |
|
|
Retrieves the absolute mouse position on the Z (mouse wheel) axis.
Implements Ogre::InputReader. |
|
|
Retrieves the state of a mouse button.
Implements Ogre::InputReader. |
|
|
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.
Implements Ogre::InputReader. |
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the Y (vertical) axis.
Implements Ogre::InputReader. |
|
|
Retrieves the relative (compared to the last input poll) mouse movement on the Z (mouse wheel) axis.
Implements Ogre::InputReader. |
|
|
Retrieves the current state of the mouse.
Implements Ogre::InputReader. |
|
||||||||||||||||||||
|
Initialise the input system.
Implements Ogre::InputReader. |
|
|
Determines if the specified key is currently depressed.
|
|
|
Return whether a key is down in immediate mode.
Implements Ogre::InputReader. |
|
||||||||||||
|
|
|
|
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. |
|
|
Sets how to grab the mouse. Possible values for mode are GRAB_MOUSE_OVER or GRAB_MOUSE_BUTTON. The first will grab the mouse if the pointer is over the application window and the latter will wait for a mouse button click to aquire the mouse. Default is GRAB_MOUSE_CLICK. Definition at line 64 of file OgreSDLInput.h. References mGrabMode. |
|
||||||||||||
|
Creates mouse pressed, released, and clicked events.
|
|
||||||||||||||||
|
Tells the reader to use buffered input and update the passed in queue.
|
|
|
Definition at line 99 of file OgreSDLInput.h. |
|
|
Definition at line 89 of file OgreSDLInput.h. |
|
|
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. |
|
|
Definition at line 96 of file OgreSDLInput.h. Referenced by setGrabMode(). |
|
|
Definition at line 93 of file OgreSDLInput.h. |
|
|
Definition at line 83 of file OgreSDLInput.h. |
|
|
Definition at line 84 of file OgreSDLInput.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. |
|
|
Definition at line 91 of file OgreSDLInput.h. |
|
|
Definition at line 88 of file OgreSDLInput.h. |
|
|
Definition at line 94 of file OgreSDLInput.h. |
|
|
Definition at line 86 of file OgreSDLInput.h. |
|
|
Definition at line 86 of file OgreSDLInput.h. |
|
|
Definition at line 86 of file OgreSDLInput.h. |
|
|
The mouse state in immediate mode.
Definition at line 334 of file OgreInput.h. |
|
|
Definition at line 85 of file OgreSDLInput.h. |
|
|
Definition at line 85 of file OgreSDLInput.h. |
|
|
Definition at line 87 of file OgreSDLInput.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. |
|
|
Definition at line 92 of file OgreSDLInput.h. |
|
|
Definition at line 107 of file OgreSDLInput.h. |
|
|
Definition at line 100 of file OgreSDLInput.h. |
Copyright © 2000-2005 by The OGRE Team
Last modified Sun Nov 20 12:41:36 2005