Technically working

This commit is contained in:
2026-03-08 11:35:21 -05:00
parent 8efdf59ebd
commit edf1b5a0a3
29 changed files with 490 additions and 485 deletions
+9 -6
View File
@@ -30,21 +30,24 @@ typedef struct inputbutton_s inputbutton_t;
#endif
typedef struct {
#if INPUT_GAMEPAD == 1
#ifdef DUSK_INPUT_GAMEPAD
SDL_GameController *controller;
#endif
#if INPUT_KEYBOARD == 1
#ifdef DUSK_INPUT_KEYBOARD
const uint8_t *keyboardState;
#endif
#if INPUT_POINTER == 1
#if INPUT_SDL2 == 1
float_t mouseX, mouseY;
#endif
#ifdef DUSK_INPUT_POINTER
float_t mouseX, mouseY;
#endif
} inputsdl2_t;
/**
* Updates the input state for SDL2.
*/
void inputUpdateSDL2(void);
/**
* Returns the input value (between 0 and 1) of the given button.
*