view src/controller.h @ 43:6e7bfe83d2b0

Changed the design to vastly simplify the video hardware and support a 23-bit address space on the CPU
author Michael Pavone <pavone@retrodev.com>
date Sat, 27 Aug 2016 22:38:31 -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_