8#ifndef DIRECTINPUT_VERSION
10#define DIRECTINPUT_VERSION 0x0500
28 [[maybe_unused]]
char abUnknown14[0x10];
29 unsigned char abButtons[4];
30 unsigned char abPrevButtons[4];
59 return abHeld[index] != 0;
280#define KEYBOARD_KEY_COUNT 256
337#define MOUSE_BUTTON_COUNT 4
382#define JOYSTICK_CONTROL_BUTTON 0x100
384#define JOYSTICK_CONTROL_X_NEGATIVE 0x8000
386#define JOYSTICK_CONTROL_X_POSITIVE 0x8100
388#define JOYSTICK_CONTROL_Y_NEGATIVE 0x8200
390#define JOYSTICK_CONTROL_Y_POSITIVE 0x8300
399#define JOYSTICK_NAME_COUNT_A 10
401#define JOYSTICK_NAME_COUNT_B 134
420#define KEYBOARD_CONTROL_NAME_COUNT 120
The mouse of the game.
Definition input.h:21
void SetCursorY(int value)
Set the vertical cursor position.
Definition input.h:54
void ReleaseMouseDevice()
Unacquire and release the DirectInput device of the mouse.
MouseDevice()
Clear the state of the mouse.
bool CreateMouseDevice(HWND hWnd)
Create the DirectInput device of the system mouse for a window, in the format of a mouse and with exc...
int GetCursorY() const
Definition input.h:42
void SyncMouseAcquireState(HWND hWnd)
Acquire the mouse while the game window is active and release it while another window is active.
void SetCursorX(int value)
Set the horizontal cursor position.
Definition input.h:50
void PollMouseDevice(HWND hWnd)
Read the mouse and the arrows of the keyboard for the menus.
int GetPreviousCursorY() const
Definition input.h:46
int GetCursorX() const
Definition input.h:38
bool IsButtonHeld(int index) const
Definition input.h:58
IDirectInputDeviceA * GetDirectInputDevice() const
Definition input.h:62