OIS::Win32Mouse Class Reference

#include <Win32Mouse.h>

Inheritance diagram for OIS::Win32Mouse:
[legend]
Collaboration diagram for OIS::Win32Mouse:
[legend]

List of all members.

Public Member Functions

 Win32Mouse (InputManager *creator, IDirectInput8 *pDI, bool buffered, DWORD coopSettings)
virtual ~Win32Mouse ()
virtual void setBuffered (bool buffered)
virtual void capture ()
virtual InterfacequeryInterface (Interface::IType type)
virtual void _initialize ()

Protected Member Functions

 Win32Mouse ()
bool _doMouseClick (int mouseButton, DIDEVICEOBJECTDATA &di)

Protected Attributes

IDirectInput8 * mDirectInput
IDirectInputDevice8 * mMouse
DWORD coopSetting
HWND mHwnd


Detailed Description

Definition at line 31 of file Win32Mouse.h.


Constructor & Destructor Documentation

Win32Mouse::Win32Mouse ( InputManager creator,
IDirectInput8 *  pDI,
bool  buffered,
DWORD  coopSettings 
)

Definition at line 31 of file Win32Mouse.cpp.

References coopSetting, OIS::Mouse::listener, OIS::Object::mBuffered, OIS::Object::mCreator, mDirectInput, mHwnd, mMouse, OIS::Object::mType, and OISMouse.

Win32Mouse::~Win32Mouse (  )  [virtual]

Definition at line 77 of file Win32Mouse.cpp.

References mMouse.

OIS::Win32Mouse::Win32Mouse (  )  [inline, protected]

Definition at line 50 of file Win32Mouse.h.


Member Function Documentation

void Win32Mouse::setBuffered ( bool  buffered  )  [virtual]

Remarks:
Sets buffered mode

Implements OIS::Object.

Definition at line 212 of file Win32Mouse.cpp.

References OIS::Object::mBuffered.

void Win32Mouse::capture (  )  [virtual]

Remarks:
Used for updating call once per frame before checking state or to update events

Implements OIS::Object.

Definition at line 88 of file Win32Mouse.cpp.

References _doMouseClick(), OIS::Axis::abs, coopSetting, OIS::MouseState::height, OIS::Mouse::listener, OIS::Object::mBuffered, mHwnd, mMouse, MOUSE_DX_BUFFERSIZE, OIS::MouseListener::mouseMoved(), OIS::Mouse::mState, OIS::Axis::rel, OIS::MouseState::width, OIS::MouseState::X, OIS::MouseState::Y, and OIS::MouseState::Z.

virtual Interface* OIS::Win32Mouse::queryInterface ( Interface::IType  type  )  [inline, virtual]

Remarks:
If available, get an interface to write to some devices. Examples include, turning on and off LEDs, ForceFeedback, etc
Parameters:
type The type of interface you are looking for

Implements OIS::Object.

Definition at line 44 of file Win32Mouse.h.

void Win32Mouse::_initialize (  )  [virtual]

Remarks:
Internal... Do not call this directly.

Implements OIS::Object.

Definition at line 44 of file Win32Mouse.cpp.

References OIS::MouseState::clear(), coopSetting, OIS::Object::mCreator, mDirectInput, mHwnd, mMouse, MOUSE_DX_BUFFERSIZE, OIS::Mouse::mState, and OIS_EXCEPT.

bool Win32Mouse::_doMouseClick ( int  mouseButton,
DIDEVICEOBJECTDATA &  di 
) [protected]

Definition at line 193 of file Win32Mouse.cpp.

References OIS::MouseState::buttons, OIS::Mouse::listener, OIS::Object::mBuffered, OIS::MouseListener::mousePressed(), OIS::MouseListener::mouseReleased(), and OIS::Mouse::mState.

Referenced by capture().


Member Data Documentation

IDirectInput8* OIS::Win32Mouse::mDirectInput [protected]

Definition at line 54 of file Win32Mouse.h.

Referenced by _initialize(), and Win32Mouse().

IDirectInputDevice8* OIS::Win32Mouse::mMouse [protected]

Definition at line 55 of file Win32Mouse.h.

Referenced by _initialize(), capture(), Win32Mouse(), and ~Win32Mouse().

DWORD OIS::Win32Mouse::coopSetting [protected]

Definition at line 56 of file Win32Mouse.h.

Referenced by _initialize(), capture(), and Win32Mouse().

HWND OIS::Win32Mouse::mHwnd [protected]

Definition at line 57 of file Win32Mouse.h.

Referenced by _initialize(), capture(), and Win32Mouse().


The documentation for this class was generated from the following files:
Generated on Sat Dec 1 20:13:56 2007 for OIS by  doxygen 1.5.4