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