cave-story-solaris/src/Input.h
Clownacy 2aeda93aeb SDL2 controller backend - support axes and hats
These are now mapped to buttons - will have more of a use in the
enhanced branch.
2020-04-04 22:54:58 +01:00

17 lines
387 B
C

#pragma once
#include "WindowsWrapper.h"
struct JOYSTICK_STATUS
{
BOOL bLeft;
BOOL bRight;
BOOL bUp;
BOOL bDown;
BOOL bButton[32]; // The original `Input.cpp` assumed there were 32 buttons (because of DirectInput's `DIJOYSTATE` struct)
};
void ReleaseDirectInput(void);
BOOL InitDirectInput(void);
BOOL GetJoystickStatus(JOYSTICK_STATUS *status);
BOOL ResetJoystickStatus(void);