RetroArch
|
#include <string.h>
#include <malloc.h>
#include <gccore.h>
#include <ogc/usb.h>
#include <wiikeyboard/usbkeyboard.h>
Classes | |
struct | ukbd_data |
struct | ukbd |
Macros | |
#define | HEAP_SIZE 4096 |
#define | DEVLIST_MAXSIZE 8 |
#define | KEY_ERROR 0x01 |
#define | MAXKEYCODE 6 |
#define | USB_MOD_CTRL_L 0x01 |
#define | USB_MOD_SHIFT_L 0x02 |
#define | USB_MOD_ALT_L 0x04 |
#define | USB_MOD_META_L 0x08 |
#define | USB_MOD_CTRL_R 0x10 |
#define | USB_MOD_SHIFT_R 0x20 |
#define | USB_MOD_ALT_R 0x40 |
#define | USB_MOD_META_R 0x80 |
#define | MODMAPSIZE (sizeof(_ukbd_mod_map)/sizeof(_ukbd_mod_map[0])) |
Functions | |
static void | _submit (USBKeyboard_eventType type, u8 code) |
static s32 | _disconnect (s32 retval, void *data) |
static s32 | _get_protocol (void) |
static s32 | _set_protocol (u8 protocol) |
static s32 | _get_input_report (void) |
static s32 | _set_output_report (void) |
s32 | USBKeyboard_Initialize (void) |
s32 | USBKeyboard_Deinitialize (void) |
s32 | USBKeyboard_Open (const eventcallback cb) |
void | USBKeyboard_Close (void) |
bool | USBKeyboard_IsConnected (void) |
s32 | USBKeyboard_Scan (void) |
s32 | USBKeyboard_SetLed (const USBKeyboard_led led, bool on) |
s32 | USBKeyboard_ToggleLed (const USBKeyboard_led led) |
Variables | |
struct ukbd_data | ATTRIBUTE_PACKED |
static s32 | hId = -1 |
static struct ukbd * | _kbd = NULL |
static u8 | _ukbd_mod_map [][2] |
#define DEVLIST_MAXSIZE 8 |
#define HEAP_SIZE 4096 |
#define KEY_ERROR 0x01 |
#define MAXKEYCODE 6 |
#define MODMAPSIZE (sizeof(_ukbd_mod_map)/sizeof(_ukbd_mod_map[0])) |
#define USB_MOD_ALT_L 0x04 |
#define USB_MOD_ALT_R 0x40 |
#define USB_MOD_CTRL_L 0x01 |
#define USB_MOD_CTRL_R 0x10 |
#define USB_MOD_META_L 0x08 |
#define USB_MOD_META_R 0x80 |
#define USB_MOD_SHIFT_L 0x02 |
#define USB_MOD_SHIFT_R 0x20 |
|
static |
s32 USBKeyboard_Open | ( | const eventcallback | cb | ) |
s32 USBKeyboard_SetLed | ( | const USBKeyboard_led | led, |
bool | on | ||
) |
s32 USBKeyboard_ToggleLed | ( | const USBKeyboard_led | led | ) |
|
static |
struct ukbd_data ATTRIBUTE_PACKED |
|
static |