WindowInputGenerator Class Reference#include <windowInputGenerator.h>
List of all members.
|
Public Member Functions |
| | WindowInputGenerator (PlatformWindow *window) |
| virtual | ~WindowInputGenerator () |
| void | setInputController (IProcessInput *inputController) |
Protected Member Functions |
| void | handleMouseButton (WindowId did, U32 modifier, U32 action, U16 button) |
| void | handleMouseWheel (WindowId did, U32 modifier, S32 wheelDelta) |
| void | handleMouseMove (WindowId did, U32 modifier, S32 x, S32 y, bool isRelative) |
| void | handleKeyboard (WindowId did, U32 modifier, U32 action, U16 key) |
| void | handleCharInput (WindowId did, U32 modifier, U16 key) |
| void | handleAppEvent (WindowId did, S32 event) |
| void | handleInputEvent (U32 deviceInst, F32 fValue, U16 deviceType, U16 objType, U16 ascii, U16 objInst, U8 action, U8 modifier) |
| void | generateInputEvent (InputEventInfo &inputEvent) |
Protected Attributes |
| PlatformWindow * | mWindow |
| IProcessInput * | mInputController |
| Point2I | mLastCursorPos |
| bool | mClampToWindow |
| bool | mFocused |
| | We store this off to avoid polling the OS constantly.
|
| F32 | mPixelsPerMickey |
| | This is the scale factor which relates mouse movement in pixels (one unit of mouse movement is a mickey) to units in the GUI.
|
Private Attributes |
| bool | mNotifyPosition |
Constructor & Destructor Documentation
| WindowInputGenerator::WindowInputGenerator |
( |
PlatformWindow * |
window |
) |
|
| virtual WindowInputGenerator::~WindowInputGenerator |
( |
|
) |
[virtual] |
Member Function Documentation
| void WindowInputGenerator::handleMouseButton |
( |
WindowId |
did, |
|
|
U32 |
modifier, |
|
|
U32 |
action, |
|
|
U16 |
button | |
|
) |
| | [protected] |
| void WindowInputGenerator::handleMouseWheel |
( |
WindowId |
did, |
|
|
U32 |
modifier, |
|
|
S32 |
wheelDelta | |
|
) |
| | [protected] |
| void WindowInputGenerator::handleKeyboard |
( |
WindowId |
did, |
|
|
U32 |
modifier, |
|
|
U32 |
action, |
|
|
U16 |
key | |
|
) |
| | [protected] |
| void WindowInputGenerator::handleCharInput |
( |
WindowId |
did, |
|
|
U32 |
modifier, |
|
|
U16 |
key | |
|
) |
| | [protected] |
| void WindowInputGenerator::handleAppEvent |
( |
WindowId |
did, |
|
|
S32 |
event | |
|
) |
| | [protected] |
| void WindowInputGenerator::handleInputEvent |
( |
U32 |
deviceInst, |
|
|
F32 |
fValue, |
|
|
U16 |
deviceType, |
|
|
U16 |
objType, |
|
|
U16 |
ascii, |
|
|
U16 |
objInst, |
|
|
U8 |
action, |
|
|
U8 |
modifier | |
|
) |
| | [protected] |
| void WindowInputGenerator::setInputController |
( |
IProcessInput * |
inputController |
) |
[inline] |
Member Data Documentation
We store this off to avoid polling the OS constantly.
This is the scale factor which relates mouse movement in pixels (one unit of mouse movement is a mickey) to units in the GUI.
|