Darc Library
2012.11
|
#include <px_DI_MouseController.h>
Public Member Functions | |
PX_DI_MouseController () | |
DCR | initMouseController (Window *_wnd, GUID *_guid, DWORD _cLevel, PFN_EVENTCALLBACK _func) |
~PX_DI_MouseController () | |
virtual DCR | destroy () |
virtual UInt | getStructSize () const |
virtual void * | getStruct () |
void | setWindowed (bool _bWindowed) |
void | setMouseCenter (bool _bCenterMouse) |
bool | isButtonDown (UInt _button) |
DCR | update () |
Public Attributes | |
bool | m_bWindowed |
bool | m_bCenterMouse |
VectorUI2D | m_vPosition |
PX_DI_MouseButton | m_aButton [8] |
Controller class for a mouse device. Provides basic functionality to receive and process mouse events. Produces pressed, released, and clicked, double clicked, repeat, and move event management.
DCR darc::protox::PX_DI_MouseController::destroy | ( | ) | [virtual] |
virtual void* darc::protox::PX_DI_MouseController::getStruct | ( | ) | [inline, virtual] |
Implements darc::protox::PX_DI_Device.
virtual UInt darc::protox::PX_DI_MouseController::getStructSize | ( | ) | const [inline, virtual] |
Implements darc::protox::PX_DI_Device.
DCR darc::protox::PX_DI_MouseController::initMouseController | ( | Window * | _wnd, |
GUID * | _guid, | ||
DWORD | _cLevel, | ||
PFN_EVENTCALLBACK | _func | ||
) |
Initializes the mouse controller.
_wnd | Pointer to a valid window object. This is needed to set the cooperation level. |
_guid | Device ID. Can be NULL for the system mouse. |
_eventProc | Function to receive mouse events. |
bool darc::protox::PX_DI_MouseController::isButtonDown | ( | UInt | _button | ) |
void darc::protox::PX_DI_MouseController::setMouseCenter | ( | bool | _bCenterMouse | ) |
void darc::protox::PX_DI_MouseController::setWindowed | ( | bool | _bWindowed | ) |
The main update function. Call this method to capture the current device state of the internal mouse device.
Array for mouse buttons.