feat: SDL input
This commit is contained in:
@@ -25,12 +25,20 @@ SOFTWARE.
|
||||
|
||||
#include "INP_ForceFeedback.h"
|
||||
#include "INP_Keyboard.h"
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
#define MAX_JOYPADS 4
|
||||
|
||||
class CInput
|
||||
{
|
||||
public:
|
||||
struct SDLInputState
|
||||
{
|
||||
bool m_bConnected;
|
||||
bool m_bButtons[SDL_GAMEPAD_BUTTON_COUNT];
|
||||
Sint16 m_iAxis[SDL_GAMEPAD_AXIS_COUNT];
|
||||
};
|
||||
|
||||
struct JOYPAD
|
||||
{
|
||||
bool m_bIsDisabled;
|
||||
@@ -73,7 +81,9 @@ public:
|
||||
|
||||
unsigned char m_ucMappingValue;
|
||||
unsigned char m_ucInputStateIndex;
|
||||
XINPUT_STATE *m_pInputStates;
|
||||
SDLInputState *m_pInputStates;
|
||||
SDL_Gamepad *m_pGamepad;
|
||||
SDL_Joystick *m_pJoystick;
|
||||
};
|
||||
|
||||
struct JOYPADS
|
||||
|
||||
Reference in New Issue
Block a user