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

Public Methods | |
| Win32Input8 () | |
| ~Win32Input8 () | |
| virtual void | initialise (RenderWindow *pWindow, bool useKeyboard=true, bool useMouse=true, bool useGameController=false) |
| @copydoc InputReader::initialise. More... | |
| virtual void | capture () |
| @copydoc InputReader::capture. More... | |
| virtual bool | isKeyDown (KeyCode kc) const |
| @copydoc InputReader::isKeyDown. 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 | initialiseBufferedKeyboard () |
| specialised initialisation routines. More... | |
| void | initialiseImmediateKeyboard () |
| void | initialiseBufferedMouse () |
| void | initialiseImmediateMouse () |
| void | captureKeyboard (void) |
| void | captureMouse (void) |
| bool | readBufferedKeyboardData () |
| bool | readBufferedMouseData () |
| long | getKeyModifiers () |
| Real | getScaled (DWORD dwVal) |
Private Attributes | |
| IDirectInput8 * | mlpDI |
| IDirectInputDevice8 * | mlpDIKeyboard |
| IDirectInputDevice8 * | mlpDIMouse |
| HWND | mHWnd |
| long | mMouseCenterX |
| long | mMouseCenterY |
| long | mMouseCenterZ |
| Real | mScale |
| char | mKeyboardBuffer [256] |
Note that this is a basic implementation only at the moment.
|
|
|
|
|
|
|
|
Adds a mouse motion listener to the cursor object. This keeps the Cursor object hidden. |
|
|
@copydoc InputReader::capture.
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. |
|
|
|
|
||||||||||||||||||||
|
@copydoc InputReader::initialise.
Implements Ogre::InputReader. |
|
|
specialised initialisation routines.
|
|
|
|
|
|
|
|
|
|
|
|
@copydoc InputReader::isKeyDown.
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