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

Public Methods | |
| SDLInput () | |
| virtual | ~SDLInput () |
| void | initialise (RenderWindow *pWindow, bool useKeyboard=true, bool useMouse=true, bool useGameController=false) |
| Initialise the input system. More... | |
| void | capture () |
| Captures the state of all the input devices. More... | |
| bool | isKeyDown (KeyCode kc) const |
| Determines if the specified key is currently depressed. More... | |
| virtual long | getMouseRelX () const |
| Retrieves the relative (compared to the last input poll) mouse movement on the X (horizontal) axis. More... | |
| virtual long | getMouseRelY () const |
| Retrieves the relative (compared to the last input poll) mouse movement on the Y (vertical) axis. More... | |
| virtual long | getMouseRelZ () const |
| Retrieves the relative (compared to the last input poll) mouse movement on the Z (mouse wheel) axis. More... | |
| virtual long | getMouseAbsX () const |
| Retrieves the absolute mouse position on the X (horizontal) axis. More... | |
| virtual long | getMouseAbsY () const |
| Retrieves the absolute mouse position on the Y (vertical) axis. More... | |
| virtual long | getMouseAbsZ () const |
| Retrieves the absolute mouse position on the Z (mouse wheel) axis. More... | |
| virtual void | getMouseState (MouseState &state) const |
| Retrieves the current state of the mouse. More... | |
| virtual bool | getMouseButton (uchar button) const |
| Retrieves the state of a mouse button. More... | |
| void | useBufferedInput (EventQueue *pEventQueue) |
| Tells the reader to use buffered input and update the passed in queue. 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... | |
| 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... | |
Private Methods | |
| void | processBufferedMouse () |
Private Attributes | |
| Uint8 * | mKeyboardBuffer |
| int | mMaxKey |
| int | mMouseX |
| int | mMouseY |
| int | mMouseCenterX |
| int | mMouseCenterY |
| Real | mScale |
| Uint8 | mMouseKeys |
| bool | _visible |
|
|
|
|
|
|
|
|
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.
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.
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.
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. |
|
||||||||||||
|
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