Mercurial > repos > simple16
view src/controller.h @ 59:b15187a99d6f default tip
Add a command line option for printing out label addresses on the command line. Useful for debugging purposes.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 07 Sep 2016 23:15:27 -0700 |
parents | b87b3ad5068c |
children |
line wrap: on
line source
#ifndef CONTROLLER_H_ #define CONTROLLER_H_ typedef struct { uint16_t state[2]; } controllers; void controller_init(controllers *context); void controller_pressed(int which, uint16_t buttons); void controller_released(int which, uint16_t buttons); uint16_t controller_read(controllers *context, int which); #endif //CONTROLLER_H_