1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-11-14 21:25:00 -05:00
gc_n64_usb-v3/usbpad.h

22 lines
567 B
C
Raw Normal View History

#ifndef USBPAD_H__
#define USBPAD_H__
2015-12-06 23:13:43 -05:00
#include "gamepads.h"
#include "usb.h"
void usbpad_init(void);
int usbpad_getReportSize(void);
unsigned char *usbpad_getReportBuffer(void);
void usbpad_update(const gamepad_data *pad_data);
char usbpad_mustVibrate(void);
2015-11-06 23:27:30 -05:00
void usbpad_forceVibrate(char force);
uint8_t usbpad_hid_set_report(const struct usb_request *rq, const uint8_t *data, uint16_t len);
uint16_t usbpad_hid_get_report(struct usb_request *rq, const uint8_t **dat);
2015-08-22 00:44:51 -04:00
// For mappings. ID starts at 0.
#define USB_BTN(id) (0x0001 << (id))
#endif // USBPAD_H__