Darc Library  2012.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
darc::protox::PX_DI_MouseController Class Reference

#include <px_DI_MouseController.h>

Inheritance diagram for darc::protox::PX_DI_MouseController:
darc::protox::PX_DI_Device

List of all members.

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]

Detailed Description

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.


Constructor & Destructor Documentation


Member Function Documentation

virtual void* darc::protox::PX_DI_MouseController::getStruct ( ) [inline, virtual]
DCR darc::protox::PX_DI_MouseController::initMouseController ( Window _wnd,
GUID *  _guid,
DWORD  _cLevel,
PFN_EVENTCALLBACK  _func 
)

Initializes the mouse controller.

Parameters:
_wndPointer to a valid window object. This is needed to set the cooperation level.
_guidDevice ID. Can be NULL for the system mouse.
_eventProcFunction to receive mouse events.

The main update function. Call this method to capture the current device state of the internal mouse device.


Member Data Documentation


The documentation for this class was generated from the following files: