#include <Win32DIMouse.h>
Inherits Mouse.
Public Member Functions | |
| DirectInputMouse (void) | |
| virtual | ~DirectInputMouse (void) |
| virtual void | init (void) |
| initialize the direct input mouse, extending functionality | |
| virtual void | reset (void) |
| reset system | |
| virtual void | update (void) |
| update the mouse data, extending functionality | |
| virtual void | setPosition (Int x, Int y) |
| set position for mouse | |
| virtual void | setMouseLimits (void) |
| update the limit extents the mouse can move in | |
| virtual void | setCursor (MouseCursor cursor) |
| set mouse cursor | |
| virtual void | capture (void) |
| capture the mouse | |
| virtual void | releaseCapture (void) |
| release mouse capture | |
Public Member Functions inherited from Mouse | |
| Mouse (void) | |
| virtual | ~Mouse (void) |
| virtual void | parseIni (void) |
| parse ini settings associated with mouse (do this before init()). | |
| virtual void | initCursorResources (void)=0 |
| needed so Win32 cursors can load resources before D3D device created. | |
| virtual void | createStreamMessages (void) |
| virtual void | draw (void) |
| draw the mouse | |
| const MouseIO * | getMouseStatus (void) |
| get current mouse status | |
| Int | getCursorTooltipDelay () |
| void | setCursorTooltipDelay (Int delay) |
| void | setCursorTooltip (UnicodeString tooltip, Int tooltipDelay=-1, const RGBColor *color=NULL, Real width=1.0f) |
| set tooltip string at cursor | |
| void | setMouseText (UnicodeString text, const RGBAColorInt *color, const RGBAColorInt *dropColor) |
| set the cursor text, NOT the tooltip text | |
| MouseCursor | getMouseCursor (void) |
| get the current mouse cursor image type | |
| virtual void | setRedrawMode (RedrawMode mode) |
| set cursor drawing method. | |
| virtual RedrawMode | getRedrawMode (void) |
| virtual void | setVisibility (Bool visible) |
| Bool | getVisibility (void) |
| void | drawTooltip (void) |
| draw the tooltip text | |
| void | drawCursorText (void) |
| draw the mouse cursor text | |
| Int | getCursorIndex (const AsciiString &name) |
| void | resetTooltipDelay (void) |
| void | mouseNotifyResolutionChange (void) |
| Bool | isClick (const ICoord2D *anchor, const ICoord2D *dest, UnsignedInt previousMouseClick, UnsignedInt currentMouseClick) |
| virtual | ~Mouse (void) |
| virtual void | Set_Cursor (int xhotspot, int yhotspot, ShapeSet const *cursor, int shape)=0 |
| virtual void | Hide_Mouse (void)=0 |
| virtual void | Show_Mouse (void)=0 |
| virtual void | Release_Mouse (void)=0 |
| virtual void | Capture_Mouse (void)=0 |
| virtual bool | Is_Captured (void) const =0 |
| virtual void | Conditional_Hide_Mouse (Rect region)=0 |
| virtual void | Conditional_Show_Mouse (void)=0 |
| virtual int | Get_Mouse_State (void) const =0 |
| virtual int | Get_Mouse_X (void) const =0 |
| virtual int | Get_Mouse_Y (void) const =0 |
| virtual void | Set_Mouse_XY (int xpos, int ypos)=0 |
| virtual void | Draw_Mouse (Surface *scr, bool issidebarsurface=false)=0 |
| virtual void | Erase_Mouse (Surface *scr, bool issidebarsurface=false)=0 |
| virtual void | Convert_Coordinate (int &x, int &y) const =0 |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Member Functions | |
| virtual UnsignedByte | getMouseEvent (MouseIO *result, Bool flush) |
| device implementation to get mouse event | |
| void | openMouse (void) |
| create the direct input mouse | |
| void | closeMouse (void) |
| void | mapDirectInputMouse (MouseIO *mouse, DIDEVICEOBJECTDATA *mdat) |
| map direct input mouse data to our own format | |
Protected Member Functions inherited from Mouse | |
| void | updateMouseData () |
| update the mouse with the current device data | |
| void | processMouseEvent (Int eventToProcess) |
| combine mouse events into final data | |
| void | checkForDrag (void) |
| check for mouse drag | |
| void | moveMouse (Int x, Int y, Int relOrAbs) |
| move mouse by delta or absolute | |
Protected Attributes | |
| LPDIRECTINPUT8 | m_pDirectInput |
| pointer to direct input interface | |
| LPDIRECTINPUTDEVICE8 | m_pMouseDevice |
| pointer to mouse device | |
Protected Attributes inherited from Mouse | |
| UnsignedByte | m_numButtons |
| number of buttons on this mouse | |
| UnsignedByte | m_numAxes |
| number of axes this mouse has | |
| Bool | m_forceFeedback |
| set to TRUE if mouse supprots force feedback | |
| UnicodeString | m_tooltipString |
| tooltip text | |
| DisplayString * | m_tooltipDisplayString |
| tooltipDisplayString | |
| Bool | m_displayTooltip |
| Bool | m_isTooltipEmpty |
| MouseIO | m_mouseEvents [NUM_MOUSE_EVENTS] |
| for event list | |
| MouseIO | m_currMouse |
| for current mouse data | |
| MouseIO | m_prevMouse |
| for previous mouse data | |
| Int | m_minX |
| mouse is locked to this region | |
| Int | m_maxX |
| mouse is locked to this region | |
| Int | m_minY |
| mouse is locked to this region | |
| Int | m_maxY |
| mouse is locked to this region | |
| UnsignedInt | m_inputFrame |
| frame input was gathered on | |
| UnsignedInt | m_deadInputFrame |
| Frame which last input occured. | |
| Bool | m_inputMovesAbsolute |
| Bool | m_visible |
| MouseCursor | m_currentCursor |
| current mouse cursor | |
| DisplayString * | m_cursorTextDisplayString |
| text to display on the cursor (if specified) | |
| RGBAColorInt | m_cursorTextColor |
| color of the cursor text | |
| RGBAColorInt | m_cursorTextDropColor |
| color of the cursor text drop shadow | |
| Int | m_tooltipDelay |
| millisecond delay for tooltips | |
| Int | m_highlightPos |
| UnsignedInt | m_highlightUpdateStart |
| UnsignedInt | m_stillTime |
| RGBAColorInt | m_tooltipTextColor |
| RGBAColorInt | m_tooltipBackColor |
| Int | m_eventsThisFrame |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Direct input implementation for the mouse device
Definition at line 62 of file Win32DIMouse.h.
| DirectInputMouse::DirectInputMouse | ( | void | ) |
Definition at line 323 of file Win32DIMouse.cpp.
|
virtual |
Definition at line 333 of file Win32DIMouse.cpp.
|
virtual |
capture the mouse
Capture the mouse to our application
Implements Mouse.
Definition at line 498 of file Win32DIMouse.cpp.
|
protected |
close and release mouse resources
Release any resources for our direct input mouse
Definition at line 165 of file Win32DIMouse.cpp.
|
protectedvirtual |
device implementation to get mouse event
Get a single mouse event from the device
Implements Mouse.
Definition at line 196 of file Win32DIMouse.cpp.
|
virtual |
initialize the direct input mouse, extending functionality
Initialize the direct input mouse device
Reimplemented from Mouse.
Definition at line 345 of file Win32DIMouse.cpp.
|
protected |
map direct input mouse data to our own format
Map the direct input codes to our own mouse format
Definition at line 278 of file Win32DIMouse.cpp.
|
protected |
create the direct input mouse
Create our direct input object, mouse device, and initialize it to the data formats we want
Definition at line 44 of file Win32DIMouse.cpp.
|
virtual |
release mouse capture
Release the mouse capture for our app window
Implements Mouse.
Definition at line 508 of file Win32DIMouse.cpp.
|
virtual |
reset system
Reset direct input mouse
Reimplemented from Mouse.
Definition at line 367 of file Win32DIMouse.cpp.
|
virtual |
set mouse cursor
Super basic simplistic cursor
Implements Mouse.
Definition at line 458 of file Win32DIMouse.cpp.
|
virtual |
update the limit extents the mouse can move in
Set the limits which the mouse is allowed to move around in. We will limit it to the client area, and if we are windowed we will allow for the mouse to move within the title bar at the top of the window
Reimplemented from Mouse.
Definition at line 407 of file Win32DIMouse.cpp.
set position for mouse
set the cursor position for windows OS
Reimplemented from Mouse.
Definition at line 438 of file Win32DIMouse.cpp.
|
virtual |
update the mouse data, extending functionality
Update the mouse position and button data, this is called once per frame in the engine. NOTE that this routine is extendion functionality that we may need that is direct input specific, not replacing
Reimplemented from Mouse.
Definition at line 380 of file Win32DIMouse.cpp.
|
protected |
pointer to direct input interface
Definition at line 95 of file Win32DIMouse.h.
|
protected |
pointer to mouse device
Definition at line 96 of file Win32DIMouse.h.