~foura/uxn900

ref: d2a2bcc652c7280b4c71b0a0dd48e55199f5337e uxn900/inc/dev/controller.h -rw-r--r-- 400 bytes
d2a2bcc6james palmer misc: move include dir out of src 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
typedef struct Controller Controller;
struct Controller {
	Uint16 vector;
	Uint8 buttons, prevbuttons;
	Uint8 key;

	struct {
		Uint8 mods;
		Uint8 cur[8];
		Uint8 prev[8];
	} raw;
};

extern Controller uxn_controller;

void  controller_init(Controller *ctrl);
void  controller_poll(Controller *ctrl, Uxn *u);
Uint8 controller_dei(Device *d, Uint8 port);
void  controller_deo(Device *d, Uint8 port);