cave-story-solaris/src/Input.h
2020-09-03 21:58:40 +01:00

17 lines
354 B
C

#pragma once
#include "WindowsWrapper.h"
struct DIRECTINPUTSTATUS
{
BOOL bLeft;
BOOL bRight;
BOOL bUp;
BOOL bDown;
BOOL bButton[32]; // 32 is the number of buttons in DirectInput's `DIJOYSTATE` struct
};
void ReleaseDirectInput(void);
BOOL InitDirectInput(void);
BOOL GetJoystickStatus(DIRECTINPUTSTATUS *status);
BOOL ResetJoystickStatus(void);