|
|
@ -62,7 +62,7 @@ private: |
|
|
|
static hsBool fUseDInput; |
|
|
|
static hsBool fUseDInput; |
|
|
|
public: |
|
|
|
public: |
|
|
|
plInputManager(); |
|
|
|
plInputManager(); |
|
|
|
plInputManager( HWND hWnd ); |
|
|
|
plInputManager( hsWindowHndl hWnd ); |
|
|
|
~plInputManager(); |
|
|
|
~plInputManager(); |
|
|
|
|
|
|
|
|
|
|
|
CLASSNAME_REGISTER( plInputManager ); |
|
|
|
CLASSNAME_REGISTER( plInputManager ); |
|
|
@ -70,7 +70,7 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void AddInputDevice(plInputDevice* pDev); |
|
|
|
void AddInputDevice(plInputDevice* pDev); |
|
|
|
void InitDInput(HINSTANCE hInst, HWND hWnd); |
|
|
|
void InitDInput(hsWindowInst hInst, hsWindowHndl hWnd); |
|
|
|
|
|
|
|
|
|
|
|
static void UseDInput(hsBool b) { fUseDInput = b; } |
|
|
|
static void UseDInput(hsBool b) { fUseDInput = b; } |
|
|
|
void Update(); |
|
|
|
void Update(); |
|
|
@ -97,16 +97,19 @@ protected: |
|
|
|
bool fActive, fFirstActivated;
|
|
|
|
bool fActive, fFirstActivated;
|
|
|
|
|
|
|
|
|
|
|
|
float fMouseScale; |
|
|
|
float fMouseScale; |
|
|
|
static uint8_t bRecenterMouse; |
|
|
|
static uint8_t bRecenterMouse; |
|
|
|
static HWND fhWnd; |
|
|
|
static hsWindowHndl fhWnd; |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
|
|
|
|
#if HS_BUILD_FOR_WIN32 |
|
|
|
// event handlers
|
|
|
|
// event handlers
|
|
|
|
void HandleWin32ControlEvent(UINT message, WPARAM Wparam, LPARAM Lparam, HWND hWnd); |
|
|
|
void HandleWin32ControlEvent(UINT message, WPARAM Wparam, LPARAM Lparam, HWND hWnd); |
|
|
|
|
|
|
|
#endif |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if HS_BUILD_FOR_WIN32 |
|
|
|
// {049DE53E-23A2-4d43-BF68-36AC1B57E357}
|
|
|
|
// {049DE53E-23A2-4d43-BF68-36AC1B57E357}
|
|
|
|
static const GUID PL_ACTION_GUID = { 0x49de53e, 0x23a2, 0x4d43, { 0xbf, 0x68, 0x36, 0xac, 0x1b, 0x57, 0xe3, 0x57 } }; |
|
|
|
static const GUID PL_ACTION_GUID = { 0x49de53e, 0x23a2, 0x4d43, { 0xbf, 0x68, 0x36, 0xac, 0x1b, 0x57, 0xe3, 0x57 } }; |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|