annotate src/controller.h @ 56:fa9cf7108ab7

Add 8bpp picture example
author Michael Pavone <pavone@retrodev.com>
date Wed, 31 Aug 2016 23:50:20 -0700
parents b87b3ad5068c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
1 #ifndef CONTROLLER_H_
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
2 #define CONTROLLER_H_
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
3 typedef struct {
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
4 uint16_t state[2];
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
5 } controllers;
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
6
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
7 void controller_init(controllers *context);
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
8 void controller_pressed(int which, uint16_t buttons);
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
9 void controller_released(int which, uint16_t buttons);
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
10 uint16_t controller_read(controllers *context, int which);
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
11
b87b3ad5068c Forgot to add the controller source files
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
12 #endif //CONTROLLER_H_