annotate src/controller.h @ 34:4a093f15fb1b

Finish controller test for controller 1
author Michael Pavone <pavone@retrodev.com>
date Sun, 03 Apr 2016 19:03:35 -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_