Technically working
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user