annotate 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
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_