feat: SDL input

This commit is contained in:
Fireblade
2026-08-07 18:24:16 -04:00
parent 0349700162
commit 78ce519776
88 changed files with 81202 additions and 68 deletions
+11 -1
View File
@@ -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