Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# Ogre::Win32Input8 Class Reference

Utility class for dealing with user input on a Win32 system. More...

`#include <OgreWin32Input8.h>`

Inheritance diagram for Ogre::Win32Input8:

[legend]
List of all members.

## Public Methods

| Win32Input8 ()
| ~Win32Input8 ()
virtual void | initialise (RenderWindow *pWindow, bool useKeyboard=true, bool useMouse=true, bool useGameController=false)
| @copydoc InputReader::initialise
virtual void | capture ()
| @copydoc InputReader::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.

## Static Public Methods

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 Methods

virtual bool | isKeyDownImmediate (KeyCode kc) const
| @copydoc InputReader::isKeyDown
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.
BufferedKeysDownSet | mBufferedKeysDown

## Static Protected Attributes

bool | sKeysInitialised = false

## Private Methods

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
Real | mScale
char | mKeyboardBuffer [256]

## Detailed Description

Utility class for dealing with user input on a Win32 system.

Note that this is a basic implementation only at the moment.

Definition at line 42 of file OgreWin32Input8.h.

## Member Typedef Documentation

typedef std::set<KeyCode> Ogre::InputReader::BufferedKeysDownSet`[protected, inherited]`

| Set of all the keys currently depressed based on buffered input events. Definition at line 345 of file OgreInput.h.

## Constructor & Destructor Documentation

Ogre::Win32Input8::Win32Input8 | ( |  | ) |

| Definition at line 44 of file OgreWin32Input8.cpp. References Ogre::InputReader::mEventQueue, mKeyboardBuffer, mlpDI, mlpDIKeyboard, mlpDIMouse, and mScale.

Ogre::Win32Input8::~Win32Input8 | ( |  | ) |

| Definition at line 56 of file OgreWin32Input8.cpp. References mlpDI, mlpDIKeyboard, and mlpDIMouse.

## Member Function Documentation

void Ogre::InputReader::addCursorMoveListener | ( | MouseMotionListener * | c | ) | `[inherited]`

| Adds a mouse motion listener to the cursor object. This keeps the Cursor object hidden. Definition at line 174 of file OgreInput.cpp. References Ogre::MouseMotionTarget::addMouseMotionListener(), and Ogre::InputReader::mCursor. Referenced by Ogre::EventProcessor::addCursorMoveListener().

void Ogre::Win32Input8::capture | ( |  | ) | `[virtual]`

| @copydoc InputReader::capture Implements Ogre::InputReader. Definition at line 425 of file OgreWin32Input8.cpp. References captureKeyboard(), captureMouse(), getKeyModifiers(), Ogre::InputReader::mModifiers, readBufferedKeyboardData(), and readBufferedMouseData().

void Ogre::Win32Input8::captureKeyboard | ( | void |  | ) | `[private]`

| Definition at line 453 of file OgreWin32Input8.cpp. References mKeyboardBuffer, and mlpDIKeyboard. Referenced by capture().

void Ogre::Win32Input8::captureMouse | ( | void |  | ) | `[private]`

| Definition at line 494 of file OgreWin32Input8.cpp. References Ogre::MouseState::Buttons, mlpDIMouse, mMouseCenterX, mMouseCenterY, mMouseCenterZ, Ogre::InputReader::mMouseState, Ogre::MouseState::Xabs, Ogre::MouseState::Xrel, Ogre::MouseState::Yabs, Ogre::MouseState::Yrel, Ogre::MouseState::Zabs, and Ogre::MouseState::Zrel. Referenced by capture(), and initialiseImmediateMouse().

void Ogre::InputReader::createKeyEvent | ( | int | id,
|  | int | key
| ) | `[protected, inherited]`

| Definition at line 152 of file OgreInput.cpp. References Ogre::InputReader::mEventQueue, Ogre::InputReader::mModifiers, and Ogre::EventQueue::push(). Referenced by Ogre::InputReader::keyChanged().

void Ogre::InputReader::createMouseEvent | ( | int | id,
|  | int | button
| ) | `[protected, inherited]`

Creates a MouseEvent that first gets processed by the cursor, then gets pushed on the queue.

Definition at line 132 of file OgreInput.cpp.

References Ogre::Cursor::getRelX(), Ogre::Cursor::getRelY(), Ogre::Cursor::getRelZ(), Ogre::Cursor::getX(), Ogre::Cursor::getY(), Ogre::Cursor::getZ(), Ogre::InputReader::mCursor, Ogre::InputReader::mEventQueue, Ogre::InputReader::mModifiers, Ogre::Cursor::processEvent(), and Ogre::EventQueue::push().

Referenced by Ogre::InputReader::mouseMoved(), and Ogre::InputReader::triggerMouseButton().

void Ogre::Win32Input8::flushAllBuffers | ( |  | ) |

| Definition at line 370 of file OgreWin32Input8.cpp. References mlpDIKeyboard, and mlpDIMouse.

char Ogre::InputReader::getKeyChar | ( | int | keyCode,
|  | long | modifiers = 0
| ) | `[static, inherited]`

| Definition at line 238 of file OgreInput.cpp. References Ogre::KEYCODE(), and Ogre::sKeyChars.

long Ogre::Win32Input8::getKeyModifiers | ( |  | ) | const`[private]`

| Definition at line 822 of file OgreWin32Input8.cpp. References Ogre::InputReader::isKeyDown(), Ogre::KC_LCONTROL, Ogre::KC_LMENU, Ogre::KC_LSHIFT, Ogre::KC_RMENU, Ogre::KC_RSHIFT, and Ogre::InputReader::mModifiers. Referenced by capture().

long Ogre::Win32Input8::getMouseAbsX | ( |  | ) | const`[virtual]`

| Retrieves the absolute mouse position on the X (horizontal) axis. Implements Ogre::InputReader. Definition at line 794 of file OgreWin32Input8.cpp. References Ogre::InputReader::mMouseState, and Ogre::MouseState::Xabs.

long Ogre::Win32Input8::getMouseAbsY | ( |  | ) | const`[virtual]`

| Retrieves the absolute mouse position on the Y (vertical) axis. Implements Ogre::InputReader. Definition at line 799 of file OgreWin32Input8.cpp. References Ogre::InputReader::mMouseState, and Ogre::MouseState::Yabs.

long Ogre::Win32Input8::getMouseAbsZ | ( |  | ) | const`[virtual]`

| Retrieves the absolute mouse position on the Z (mouse wheel) axis. Implements Ogre::InputReader. Definition at line 804 of file OgreWin32Input8.cpp. References Ogre::InputReader::mMouseState, and Ogre::MouseState::Zabs.

bool Ogre::Win32Input8::getMouseButton | ( | uchar | button | ) | const`[virtual]`

| Retrieves the state of a mouse button. Implements Ogre::InputReader. Definition at line 810 of file OgreWin32Input8.cpp. References Ogre::MouseState::isButtonDown(), Ogre::InputReader::mMouseState, and Ogre::uchar.

virtual long Ogre::InputReader::getMouseRelativeX | ( |  | ) | const`[virtual, inherited]`

| Retrieves the relative position of the mouse when capture was called relative to the last time. Definition at line 272 of file OgreInput.h.

virtual long Ogre::InputReader::getMouseRelativeY | ( |  | ) | const`[virtual, inherited]`

| Retrieves the relative position of the mouse when capture was called relative to the last time. Definition at line 276 of file OgreInput.h.

virtual long Ogre::InputReader::getMouseRelativeZ | ( |  | ) | const`[virtual, inherited]`

| Retrieves the relative position of the mouse when capture was called relative to the last time. Definition at line 280 of file OgreInput.h.

long Ogre::Win32Input8::getMouseRelX | ( |  | ) | const`[virtual]`

| Retrieves the relative (compared to the last input poll) mouse movement on the X (horizontal) axis. Implements Ogre::InputReader. Definition at line 777 of file OgreWin32Input8.cpp. References Ogre::InputReader::mMouseState, and Ogre::MouseState::Xrel.

long Ogre::Win32Input8::getMouseRelY | ( |  | ) | const`[virtual]`

| Retrieves the relative (compared to the last input poll) mouse movement on the Y (vertical) axis. Implements Ogre::InputReader. Definition at line 783 of file OgreWin32Input8.cpp. References Ogre::InputReader::mMouseState, and Ogre::MouseState::Yrel.

long Ogre::Win32Input8::getMouseRelZ | ( |  | ) | const`[virtual]`

| Retrieves the relative (compared to the last input poll) mouse movement on the Z (mouse wheel) axis. Implements Ogre::InputReader. Definition at line 789 of file OgreWin32Input8.cpp. References Ogre::InputReader::mMouseState, and Ogre::MouseState::Zrel.

void Ogre::Win32Input8::getMouseState | ( | MouseState & | state | ) | const`[virtual]`

| Retrieves the current state of the mouse. Implements Ogre::InputReader. Definition at line 816 of file OgreWin32Input8.cpp. References Ogre::InputReader::mMouseState.

Real Ogre::Win32Input8::getScaled | ( | DWORD | dwVal | ) | const`[private]`

| Definition at line 765 of file OgreWin32Input8.cpp. References mScale, and Ogre::Real. Referenced by readBufferedMouseData().

void Ogre::Win32Input8::initialise | ( | RenderWindow * | pWindow,
|  | bool | useKeyboard = true,
|  | bool | useMouse = true,
|  | bool | useGameController = false
| ) | `[virtual]`

| @copydoc InputReader::initialise Implements Ogre::InputReader. Definition at line 308 of file OgreWin32Input8.cpp. References initialiseBufferedKeyboard(), initialiseBufferedMouse(), initialiseImmediateKeyboard(), initialiseImmediateMouse(), mHWnd, mlpDI, mUseKeyboard, and mUseMouse.

void Ogre::Win32Input8::initialiseBufferedKeyboard | ( |  | ) | `[private]`

| specialised initialisation routines Definition at line 80 of file OgreWin32Input8.cpp. References DINPUT_BUFFERSIZE, mHWnd, mlpDI, and mlpDIKeyboard. Referenced by initialise(), and setBufferedInput().

void Ogre::Win32Input8::initialiseBufferedMouse | ( |  | ) | `[private]`

| Definition at line 245 of file OgreWin32Input8.cpp. References DINPUT_BUFFERSIZE, mHWnd, mlpDI, and mlpDIMouse. Referenced by initialise(), and setBufferedInput().

void Ogre::Win32Input8::initialiseImmediateKeyboard | ( |  | ) | `[private]`

| Definition at line 143 of file OgreWin32Input8.cpp. References DINPUT_BUFFERSIZE, mHWnd, mlpDI, and mlpDIKeyboard. Referenced by initialise(), and setBufferedInput().

void Ogre::Win32Input8::initialiseImmediateMouse | ( |  | ) | `[private]`

| Definition at line 205 of file OgreWin32Input8.cpp. References captureMouse(), Except, mHWnd, mlpDI, mlpDIMouse, Ogre::InputReader::mMouseState, OgreGuard, OgreUnguard, Ogre::MouseState::Xrel, Ogre::MouseState::Yrel, and Ogre::MouseState::Zrel. Referenced by initialise(), and setBufferedInput().

bool Ogre::InputReader::isKeyDown | ( | KeyCode | kc | ) | const`[virtual, inherited]`

Determines if the specified key is currently depressed.

Note:
  In immediate mode, this enquiry method uses the state of the keyboard at the last 'capture' call.

Definition at line 370 of file OgreInput.cpp.

References Ogre::InputReader::isKeyDownImmediate(), Ogre::KeyCode, and Ogre::InputReader::mBufferedKeysDown.

Referenced by getKeyModifiers().

bool Ogre::Win32Input8::isKeyDownImmediate | ( | KeyCode | kc | ) | const`[protected, virtual]`

| @copydoc InputReader::isKeyDown Implements Ogre::InputReader. Definition at line 771 of file OgreWin32Input8.cpp. References Ogre::KeyCode, and mKeyboardBuffer.

void Ogre::InputReader::keyChanged | ( | int | key,
|  | bool | down
| ) | `[protected, inherited]`

| Definition at line 185 of file OgreInput.cpp. References Ogre::InputReader::createKeyEvent(), Ogre::KC_LCONTROL, Ogre::KC_LMENU, Ogre::KC_LSHIFT, Ogre::KC_RCONTROL, Ogre::KC_RMENU, Ogre::KC_RSHIFT, Ogre::InputReader::mBufferedKeysDown, and Ogre::InputReader::mModifiers. Referenced by Ogre::GLXInput::capture(), Ogre::SDLInput::processBufferedKeyboard(), and readBufferedKeyboardData().

void Ogre::InputReader::mouseMoved | ( |  | ) | `[protected, inherited]`

| Creates mouse moved or dragged events depending if any button is pressed. Definition at line 161 of file OgreInput.cpp. References Ogre::InputReader::createMouseEvent(), and Ogre::InputReader::mModifiers. Referenced by Ogre::GLXInput::capture(), Ogre::SDLInput::processBufferedMouse(), and readBufferedMouseData().

bool Ogre::Win32Input8::readBufferedKeyboardData | ( |  | ) | `[private]`

| Definition at line 556 of file OgreWin32Input8.cpp. References DINPUT_BUFFERSIZE, Ogre::InputReader::keyChanged(), and mlpDIKeyboard. Referenced by capture().

bool Ogre::Win32Input8::readBufferedMouseData | ( |  | ) | `[private]`

| Definition at line 624 of file OgreWin32Input8.cpp. References Ogre::Cursor::addToX(), Ogre::Cursor::addToY(), Ogre::Cursor::addToZ(), DINPUT_BUFFERSIZE, getScaled(), Ogre::InputReader::mCursor, mlpDIMouse, Ogre::InputReader::mouseMoved(), and Ogre::InputReader::triggerMouseButton(). Referenced by capture().

void Ogre::InputReader::removeCursorMoveListener | ( | MouseMotionListener * | c | ) | `[inherited]`

| Remove a mouse motion listener to the cursor object. This keeps the Cursor object hidden. Definition at line 179 of file OgreInput.cpp. References Ogre::InputReader::mCursor, and Ogre::MouseMotionTarget::removeMouseMotionListener(). Referenced by Ogre::EventProcessor::removeCursorMoveListener().

void Ogre::Win32Input8::setBufferedInput | ( | bool | keys,
|  | bool | mouse
| ) | `[virtual]`

| Reimplemented from Ogre::InputReader. Definition at line 383 of file OgreWin32Input8.cpp. References initialiseBufferedKeyboard(), initialiseBufferedMouse(), initialiseImmediateKeyboard(), initialiseImmediateMouse(), mlpDIKeyboard, mlpDIMouse, Ogre::InputReader::mUseBufferedKeys, Ogre::InputReader::mUseBufferedMouse, mUseKeyboard, and mUseMouse.

void Ogre::InputReader::setupKeyChars | ( |  | ) | `[protected, inherited]`

Definition at line 248 of file OgreInput.cpp.

References Ogre::KC_0, Ogre::KC_1, Ogre::KC_2, Ogre::KC_3, Ogre::KC_4, Ogre::KC_5, Ogre::KC_6, Ogre::KC_7, Ogre::KC_8, Ogre::KC_9, Ogre::KC_A, Ogre::KC_ADD, Ogre::KC_APOSTROPHE, Ogre::KC_AT, Ogre::KC_B, Ogre::KC_BACKSLASH, Ogre::KC_C, Ogre::KC_COLON, Ogre::KC_COMMA, Ogre::KC_D, Ogre::KC_DECIMAL, Ogre::KC_DIVIDE, Ogre::KC_E, Ogre::KC_EQUALS, Ogre::KC_F, Ogre::KC_G, Ogre::KC_GRAVE, Ogre::KC_H, Ogre::KC_I, Ogre::KC_J, Ogre::KC_K, Ogre::KC_L, Ogre::KC_LBRACKET, Ogre::KC_M, Ogre::KC_MINUS, Ogre::KC_MULTIPLY, Ogre::KC_N, Ogre::KC_NUMPAD0, Ogre::KC_NUMPAD1, Ogre::KC_NUMPAD2, Ogre::KC_NUMPAD3, Ogre::KC_NUMPAD4, Ogre::KC_NUMPAD5, Ogre::KC_NUMPAD6, Ogre::KC_NUMPAD7, Ogre::KC_NUMPAD8, Ogre::KC_NUMPAD9, Ogre::KC_NUMPADCOMMA, Ogre::KC_NUMPADEQUALS, Ogre::KC_O, Ogre::KC_P, Ogre::KC_PERIOD, Ogre::KC_Q, Ogre::KC_R, Ogre::KC_RBRACKET, Ogre::KC_S, Ogre::KC_SEMICOLON, Ogre::KC_SLASH, Ogre::KC_SPACE, Ogre::KC_SUBTRACT, Ogre::KC_T, Ogre::KC_U, Ogre::KC_UNDERLINE, Ogre::KC_V, Ogre::KC_W, Ogre::KC_X, Ogre::KC_Y, Ogre::KC_Z, Ogre::KEYCODE(), and Ogre::sKeyChars.

Referenced by Ogre::InputReader::InputReader().

void Ogre::InputReader::triggerMouseButton | ( | int | nMouseCode,
|  | bool | mousePressed
| ) | `[protected, inherited]`

| Creates mouse pressed, released, and clicked events. Definition at line 88 of file OgreInput.cpp. References Ogre::MouseState::Buttons, Ogre::InputReader::createMouseEvent(), Ogre::InputReader::mModifiers, and Ogre::InputReader::mMouseState. Referenced by Ogre::GLXInput::capture(), Ogre::SDLInput::processBufferedMouse(), and readBufferedMouseData().

void Ogre::InputReader::useBufferedInput | ( | EventQueue * | pEventQueue,
|  | bool | keys = true,
|  | bool | mouse = true
| ) | `[inherited]`

Tells the reader to use buffered input and update the passed in queue.

Remarks:
  The default behaviour of the input reader is simply to capture the current state of the mouse / keyboard on demand. An alternative is to use buffered input where all events are registered on a queue.

Definition at line 54 of file OgreInput.cpp.

References Ogre::InputReader::mCursor, Ogre::InputReader::mEventQueue, Ogre::InputReader::mUseBufferedKeys, and Ogre::InputReader::mUseBufferedMouse.

Referenced by Ogre::EventProcessor::initialise().

## Member Data Documentation

BufferedKeysDownSet Ogre::InputReader::mBufferedKeysDown`[protected, inherited]`

| Definition at line 346 of file OgreInput.h. Referenced by Ogre::InputReader::isKeyDown(), and Ogre::InputReader::keyChanged().

Cursor* Ogre::InputReader::mCursor`[protected, inherited]`

Internal Cursor object.

Remarks:
  This is a mathematical representation of where the cursor is, it does not draw a cursor.

See also:
  CursorGuiElement.

Definition at line 331 of file OgreInput.h.

Referenced by Ogre::InputReader::addCursorMoveListener(), Ogre::GLXInput::capture(), Ogre::InputReader::createMouseEvent(), Ogre::InputReader::InputReader(), Ogre::SDLInput::processBufferedMouse(), readBufferedMouseData(), Ogre::InputReader::removeCursorMoveListener(), Ogre::InputReader::useBufferedInput(), and Ogre::InputReader::~InputReader().

EventQueue* Ogre::InputReader::mEventQueue`[protected, inherited]`

| EventQueue is used for buffered input support. Definition at line 334 of file OgreInput.h. Referenced by Ogre::InputReader::createKeyEvent(), Ogre::InputReader::createMouseEvent(), Ogre::GLXInput::GLXInput(), Ogre::InputReader::InputReader(), Ogre::SDLInput::SDLInput(), Ogre::InputReader::useBufferedInput(), and Win32Input8().

HWND Ogre::Win32Input8::mHWnd`[private]`

| Definition at line 87 of file OgreWin32Input8.h. Referenced by initialise(), initialiseBufferedKeyboard(), initialiseBufferedMouse(), initialiseImmediateKeyboard(), and initialiseImmediateMouse().

char Ogre::Win32Input8::mKeyboardBuffer[256]`[private]`

| Definition at line 117 of file OgreWin32Input8.h. Referenced by captureKeyboard(), isKeyDownImmediate(), and Win32Input8().

IDirectInput8* Ogre::Win32Input8::mlpDI`[private]`

| Definition at line 83 of file OgreWin32Input8.h. Referenced by initialise(), initialiseBufferedKeyboard(), initialiseBufferedMouse(), initialiseImmediateKeyboard(), initialiseImmediateMouse(), Win32Input8(), and ~Win32Input8().

IDirectInputDevice8* Ogre::Win32Input8::mlpDIKeyboard`[private]`

| Definition at line 84 of file OgreWin32Input8.h. Referenced by captureKeyboard(), flushAllBuffers(), initialiseBufferedKeyboard(), initialiseImmediateKeyboard(), readBufferedKeyboardData(), setBufferedInput(), Win32Input8(), and ~Win32Input8().

IDirectInputDevice8* Ogre::Win32Input8::mlpDIMouse`[private]`

| Definition at line 85 of file OgreWin32Input8.h. Referenced by captureMouse(), flushAllBuffers(), initialiseBufferedMouse(), initialiseImmediateMouse(), readBufferedMouseData(), setBufferedInput(), Win32Input8(), and ~Win32Input8().

long Ogre::InputReader::mModifiers`[protected, inherited]`

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 capture(), Ogre::InputReader::createKeyEvent(), Ogre::InputReader::createMouseEvent(), getKeyModifiers(), Ogre::InputReader::InputReader(), Ogre::InputReader::keyChanged(), Ogre::InputReader::mouseMoved(), and Ogre::InputReader::triggerMouseButton().

long Ogre::Win32Input8::mMouseCenterX`[private]`

| Definition at line 109 of file OgreWin32Input8.h. Referenced by captureMouse().

long Ogre::Win32Input8::mMouseCenterY`[private]`

| Definition at line 109 of file OgreWin32Input8.h. Referenced by captureMouse().

long Ogre::Win32Input8::mMouseCenterZ`[private]`

| Definition at line 109 of file OgreWin32Input8.h. Referenced by captureMouse().

MouseState Ogre::InputReader::mMouseState`[protected, inherited]`

The mouse state in immediate mode.

Definition at line 342 of file OgreInput.h.

Referenced by Ogre::SDLInput::capture(), Ogre::GLXInput::capture(), captureMouse(), getMouseAbsX(), Ogre::GLXInput::getMouseAbsX(), getMouseAbsY(), Ogre::GLXInput::getMouseAbsY(), getMouseAbsZ(), Ogre::GLXInput::getMouseAbsZ(), getMouseButton(), Ogre::SDLInput::getMouseButton(), Ogre::GLXInput::getMouseButton(), getMouseRelX(), Ogre::SDLInput::getMouseRelX(), Ogre::GLXInput::getMouseRelX(), getMouseRelY(), Ogre::SDLInput::getMouseRelY(), Ogre::GLXInput::getMouseRelY(), getMouseRelZ(), Ogre::SDLInput::getMouseRelZ(), Ogre::GLXInput::getMouseRelZ(), getMouseState(), Ogre::SDLInput::getMouseState(), Ogre::GLXInput::getMouseState(), Ogre::GLXInput::GrabCursor(), Ogre::GLXInput::initialise(), initialiseImmediateMouse(), and Ogre::InputReader::triggerMouseButton().

Real Ogre::Win32Input8::mScale`[private]`

| Definition at line 113 of file OgreWin32Input8.h. Referenced by getScaled(), and Win32Input8().

bool Ogre::InputReader::mUseBufferedKeys`[protected, inherited]`

Wether to use buffering input support - buffering support relies on using an EventQueue.

See also:
  class EventQueue

Definition at line 339 of file OgreInput.h.

Referenced by Ogre::InputReader::InputReader(), setBufferedInput(), Ogre::InputReader::setBufferedInput(), and Ogre::InputReader::useBufferedInput().

bool Ogre::InputReader::mUseBufferedMouse`[protected, inherited]`

Wether to use buffering input support - buffering support relies on using an EventQueue.

See also:
  class EventQueue

Definition at line 339 of file OgreInput.h.

Referenced by Ogre::GLXInput::capture(), Ogre::InputReader::InputReader(), setBufferedInput(), Ogre::InputReader::setBufferedInput(), and Ogre::InputReader::useBufferedInput().

bool Ogre::Win32Input8::mUseKeyboard`[private]`

| Definition at line 110 of file OgreWin32Input8.h. Referenced by initialise(), and setBufferedInput().

bool Ogre::Win32Input8::mUseMouse`[private]`

| Definition at line 110 of file OgreWin32Input8.h. Referenced by initialise(), and setBufferedInput().

bool Ogre::InputReader::sKeysInitialised = false`[static, protected, inherited]`

| Definition at line 37 of file OgreInput.cpp. Referenced by Ogre::InputReader::InputReader().

The documentation for this class was generated from the following files:

- OgreWin32Input8.h
- OgreWin32Input8.cpp

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:48 2004