diff options
Diffstat (limited to 'src/input.h')
| -rw-r--r-- | src/input.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/input.h b/src/input.h index 8913e35..083a377 100644 --- a/src/input.h +++ b/src/input.h @@ -1,7 +1,29 @@ #ifndef GAME_INPUT_H #define GAME_INPUT_H + +#ifdef PLATFORM_WEB + +typedef +struct +{ + char r; + char z; +} +joypad_buttons_t; +typedef +struct +{ + char stick_x; + char stick_y; +} +joypad_inputs_t; + +#else + #include <libdragon.h> +#endif + extern joypad_buttons_t pressed_p1; extern joypad_buttons_t held_p1; extern joypad_inputs_t inputs_p1; |
