blob: 083a37795090f413eb6459f9a017ed74c7b25d36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#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;
extern joypad_buttons_t pressed_p2;
extern joypad_buttons_t held_p2;
extern joypad_inputs_t inputs_p2;
void updateController(void);
#endif
|