annotate src/controller.h @ 58:bed2d84eeabe

Fix ldimh special casing of loading labels for the case when the label is not a forward reference
author Michael Pavone <pavone@retrodev.com>
date Tue, 06 Sep 2016 09:42:31 -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_