mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-21 14:58:51 -05:00
0e0c381fbd
The adapter can now be queried by the management tool to see what configuration options and requests are available without harcoding them for each release.
19 lines
493 B
C
19 lines
493 B
C
#ifndef _hiddata_h__
|
|
#define _hiddata_h__
|
|
|
|
#include <stdint.h>
|
|
#include "usb.h"
|
|
|
|
struct hiddata_ops {
|
|
void (*suspendPolling)(uint8_t suspend);
|
|
void (*forceVibration)(uint8_t channel, uint8_t force);
|
|
uint8_t (*getSupportedModes)(uint8_t *dst);
|
|
};
|
|
|
|
uint16_t hiddata_get_report(void *ctx, struct usb_request *rq, const uint8_t **dat);
|
|
uint8_t hiddata_set_report(void *ctx, const struct usb_request *rq, const uint8_t *dat, uint16_t len);
|
|
|
|
void hiddata_doTask(struct hiddata_ops *ops);
|
|
|
|
#endif
|