mirror of
https://github.com/raphnet/4nes4snes
synced 2024-11-11 19:45:02 -05:00
23 lines
435 B
C
23 lines
435 B
C
#ifndef _gamepad_h__
|
|
#define _gamepad_h__
|
|
|
|
typedef struct {
|
|
// size of reports built by buildReport
|
|
int report_size;
|
|
|
|
int reportDescriptorSize;
|
|
void *reportDescriptor; // must be in flash
|
|
|
|
int deviceDescriptorSize; // if 0, use default
|
|
void *deviceDescriptor; // must be in flash
|
|
|
|
void (*init)(void);
|
|
void (*update)(void);
|
|
char (*changed)(void);
|
|
void (*buildReport)(unsigned char *buf);
|
|
} Gamepad;
|
|
|
|
#endif // _gamepad_h__
|
|
|
|
|