#include <OgreWin32Input8.h>
Inheritance diagram for Ogre::Win32Input8:

Public Member Functions | |||||||||||||
| Win32Input8 () | |||||||||||||
| ~Win32Input8 () | |||||||||||||
| virtual void | initialise (RenderWindow *pWindow, bool useKeyboard=true, bool useMouse=true, bool useGameController=false) | ||||||||||||
| |||||||||||||
| virtual void | capture () | ||||||||||||
| |||||||||||||
| 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 | setBufferedInput (bool keys, bool mouse) | ||||||||||||
| void | flushAllBuffers () | ||||||||||||
| void | useBufferedInput (EventQueue *pEventQueue, bool keys=true, bool mouse=true) | ||||||||||||
| Tells the reader to use buffered input and update the passed in queue. | |||||||||||||
| 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. | |||||||||||||
| virtual void | setMouseScale (Real scale) | ||||||||||||
| Set mouse scale factor. | |||||||||||||
| virtual Real | getMouseScale (void) const | ||||||||||||
| Get mouse scale factor. | |||||||||||||
Static Public Member Functions | |||||||||||||
| static 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 | |||||||||||||
| virtual bool | isKeyDownImmediate (KeyCode kc) const | ||||||||||||
| |||||||||||||
| 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. | |||||||||||||
| Real | mMouseScale | ||||||||||||
| Speed of mouse. | |||||||||||||
| 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 Member Functions | |||||||||||||
| void | initialiseBufferedKeyboard () | ||||||||||||
| specialised initialisation routines | |||||||||||||
| void | initialiseImmediateKeyboard () | ||||||||||||
| void | initialiseBufferedMouse () | ||||||||||||
| void | initialiseImmediateMouse () | ||||||||||||
| void | captureKeyboard (void) | ||||||||||||
| void | captureMouse (void) | ||||||||||||
| bool | readBufferedKeyboardData () | ||||||||||||
| bool | readBufferedMouseData () | ||||||||||||
| long | getKeyModifiers () const | ||||||||||||
| Real | getScaled (DWORD dwVal) const | ||||||||||||
Private Attributes | |||||||||||||
| IDirectInput8 * | mlpDI | ||||||||||||
| IDirectInputDevice8 * | mlpDIKeyboard | ||||||||||||
| IDirectInputDevice8 * | mlpDIMouse | ||||||||||||
| HWND | mHWnd | ||||||||||||
| long | mMouseCenterX | ||||||||||||
| long | mMouseCenterY | ||||||||||||
| long | mMouseCenterZ | ||||||||||||
| bool | mUseKeyboard | ||||||||||||
| bool | mUseMouse | ||||||||||||
| char | mKeyboardBuffer [256] | ||||||||||||
Note that this is a basic implementation only at the moment.
Definition at line 44 of file OgreWin32Input8.h.
|
|
Set of all the keys currently depressed based on buffered input events.
Definition at line 350 of file OgreInput.h. |
|
|
|
|
|
|
|
|
Adds a mouse motion listener to the cursor object. This keeps the Cursor object hidden. |
|
|
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. |
|
|
Get mouse scale factor.
Definition at line 317 of file OgreInput.h. |
|
|
Retrieves the current state of the mouse.
Implements Ogre::InputReader. |
|
|
|
|
||||||||||||||||||||
|
Implements Ogre::InputReader. |
|
|
specialised initialisation routines
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
||||||||||||
|
Reimplemented from Ogre::InputReader. |
|
|
Set mouse scale factor.
Definition at line 313 of file OgreInput.h. |
|
||||||||||||
|
Creates mouse pressed, released, and clicked events.
|
|
||||||||||||||||
|
Tells the reader to use buffered input and update the passed in queue.
|
|
|
Definition at line 351 of file OgreInput.h. |
|
|
Internal Cursor object.
Definition at line 336 of file OgreInput.h. |
|
|
EventQueue is used for buffered input support.
Definition at line 339 of file OgreInput.h. |
|
|
Definition at line 89 of file OgreWin32Input8.h. |
|
|
Definition at line 118 of file OgreWin32Input8.h. |
|
|
Definition at line 85 of file OgreWin32Input8.h. |
|
|
Definition at line 86 of file OgreWin32Input8.h. |
|
|
Definition at line 87 of file OgreWin32Input8.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 325 of file OgreInput.h. |
|
|
Definition at line 111 of file OgreWin32Input8.h. |
|
|
Definition at line 111 of file OgreWin32Input8.h. |
|
|
Definition at line 111 of file OgreWin32Input8.h. |
|
|
Speed of mouse.
Definition at line 328 of file OgreInput.h. |
|
|
The mouse state in immediate mode.
Definition at line 347 of file OgreInput.h. |
|
|
Wether to use buffering input support - buffering support relies on using an EventQueue.
Definition at line 344 of file OgreInput.h. |
|
|
Wether to use buffering input support - buffering support relies on using an EventQueue.
Definition at line 344 of file OgreInput.h. |
|
|
Definition at line 112 of file OgreWin32Input8.h. |
|
|
Definition at line 112 of file OgreWin32Input8.h. |
Copyright © 2000-2005 by The OGRE Team

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Jan 21 10:07:02 2007