#include <Win32Mouse.h>
Public Member Functions | |
| Win32Mouse (InputManager *creator, IDirectInput8 *pDI, bool buffered, DWORD coopSettings) | |
| virtual | ~Win32Mouse () |
| virtual void | setBuffered (bool buffered) |
| virtual void | capture () |
| virtual Interface * | queryInterface (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 |
Definition at line 31 of file Win32Mouse.h.
| 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] |
| OIS::Win32Mouse::Win32Mouse | ( | ) | [inline, protected] |
Definition at line 50 of file Win32Mouse.h.
| void Win32Mouse::setBuffered | ( | bool | buffered | ) | [virtual] |
Implements OIS::Object.
Definition at line 212 of file Win32Mouse.cpp.
References OIS::Object::mBuffered.
| void Win32Mouse::capture | ( | ) | [virtual] |
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] |
| type | The type of interface you are looking for |
Implements OIS::Object.
Definition at line 44 of file Win32Mouse.h.
| void Win32Mouse::_initialize | ( | ) | [virtual] |
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().
IDirectInput8* OIS::Win32Mouse::mDirectInput [protected] |
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().
1.5.4