#include <GameDXInput.h>
Public Methods | |
| GameDXInput () | |
| Constructor sets all member variables to 0. | |
| ~GameDXInput () | |
| Destructor calls DITerm. | |
| void | DITerm () |
| DITerm. | |
| void | SetupDI (HINSTANCE hInstance, HWND hwndMain) |
| SetupDI. | |
| void | PollKeyboard () |
| Polls the keyboard to update the key buffer. | |
| bool | IsKeyDown (int keyToCheck) |
| Checks the key buffer if specified key has been pressed. | |
| void | PollMouse () |
| MousePoll. | |
| bool | IsButtonDown (int Button) |
| IsButtonDown. | |
| POINT | GetScreenPt () |
| GetMousePt. | |
| POINT | GetRelativePt () |
| GetRelativePt. | |
| POINT | GameDXInput::GetWindowPt () |
| Currently the mouse window pt is not set, so this function gets garbage. | |
| void | ResetPos () |
| Resets Position to 0,0. | |
| void | CenterPos () |
| Centers position to center of window. | |
| void | CreateMouseSurf (LPDIRECT3DDEVICE8 m_pd3dDevice, char *pathName) |
| Creates mouse surface. | |
| void | ShowCursor (bool bShow, LPDIRECT3DDEVICE8 device) |
| Turn on/off show cursor. | |
| void | OnLostDevice () |
| Event called when device is lost. | |
| void | OnResetDevice () |
| Event called when device is reset. | |
Handles creating and managing a DirectInput object. Both keyboard and mouse input are done through this object.
|
||||||||||||
|
Creates mouse surface. Parameters: pd3dDevice - Initialized Display Device |
|
|
DITerm. Cleans up all the DirectInput pointers |
|
|
GetRelativePt.
|
|
|
GetMousePt.
|
|
|
IsButtonDown.
|
|
|
Checks the key buffer if specified key has been pressed.
|
|
|
MousePoll. Polls the mouse to update all the current info about it |
|
||||||||||||
|
SetupDI. Setups a DirectInput Object and ties it to the keyboard
|
1.2.18