comparison src/controller.h @ 31:b87b3ad5068c

Forgot to add the controller source files
author Michael Pavone <pavone@retrodev.com>
date Sun, 03 Apr 2016 18:37:31 -0700
parents
children
comparison
equal deleted inserted replaced
30:78068060313a 31:b87b3ad5068c
1 #ifndef CONTROLLER_H_
2 #define CONTROLLER_H_
3 typedef struct {
4 uint16_t state[2];
5 } controllers;
6
7 void controller_init(controllers *context);
8 void controller_pressed(int which, uint16_t buttons);
9 void controller_released(int which, uint16_t buttons);
10 uint16_t controller_read(controllers *context, int which);
11
12 #endif //CONTROLLER_H_