RetroArch
|
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/iosupport.h>
#include <stdio.h>
#include <malloc.h>
#include <ctype.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <gccore.h>
#include <ogc/usb.h>
#include <ogc/lwp_queue.h>
#include <wiikeyboard/usbkeyboard.h>
#include <wiikeyboard/keyboard.h>
#include "wsksymvar.h"
Classes | |
struct | nameint |
struct | _keyheld |
struct | _node |
Macros | |
#define | KBD_THREAD_STACKSIZE (1024 * 4) |
#define | KBD_THREAD_PRIO 64 |
#define | KBD_THREAD_UDELAY (1000 * 10) |
#define | KBD_THREAD_KBD_SCAN_INTERVAL (3 * 100) |
#define | MAXHELD 8 |
Functions | |
keysym_t | ksym_upcase (keysym_t) |
static u8 *_kbd_stack [KBD_THREAD_STACKSIZE] | ATTRIBUTE_ALIGN (8) |
static kbd_t | _get_keymap_by_name (const char *identifier) |
static s32 | _kbd_addEvent (const keyboard_event *event) |
void | update_modifier (u_int type, int toggle, int mask) |
static void | _kbd_event_cb (USBKeyboard_event kevent) |
static s32 | _kbd_scan_for_keyboard (void) |
static void * | _kbd_thread_func (void *arg) |
static void * | _kbd_buf_thread_func (void *arg) |
static ssize_t | _keyboardRead (struct _reent *r, void *unused, char *ptr, size_t len) |
s32 | KEYBOARD_Init (keyPressCallback keypress_cb) |
s32 | KEYBOARD_Deinit (void) |
s32 | KEYBOARD_GetEvent (keyboard_event *event) |
s32 | KEYBOARD_FlushEvents (void) |
Variables | |
static lwp_queue | _queue |
static lwp_t | _kbd_thread = LWP_THREAD_NULL |
static lwp_t | _kbd_buf_thread = LWP_THREAD_NULL |
static bool | _kbd_thread_running = false |
static bool | _kbd_thread_quit = false |
const struct wscons_keydesc | ukbd_keydesctab [] |
static struct wskbd_mapdata | _ukbd_keymapdata |
static struct nameint | kbdenc_tab [] |
static struct nameint | kbdvar_tab [] |
static int | _sc_maplen = 0 |
static struct wscons_keymap * | _sc_map = 0 |
static u16 | _modifiers |
static int | _composelen |
static keysym_t | _composebuf [2] |
static _keyheld | _held [MAXHELD] |
static keyPressCallback | _readKey_cb = NULL |
struct { | |
vu8 head | |
vu8 tail | |
char buf [256] | |
} | _keyBuffer |
static const devoptab_t | std_in |
#define KBD_THREAD_KBD_SCAN_INTERVAL (3 * 100) |
#define KBD_THREAD_PRIO 64 |
#define KBD_THREAD_STACKSIZE (1024 * 4) |
#define KBD_THREAD_UDELAY (1000 * 10) |
#define MAXHELD 8 |
|
static |
|
static |
|
static |
|
static |
s32 KEYBOARD_GetEvent | ( | keyboard_event * | event | ) |
s32 KEYBOARD_Init | ( | keyPressCallback | keypress_cb | ) |
void update_modifier | ( | u_int | type, |
int | toggle, | ||
int | mask | ||
) |
|
static |
|
static |
|
static |
|
static |
struct { ... } _keyBuffer |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
char buf[256] |
vu8 head |
|
static |
|
static |
|
static |
vu8 tail |
const struct wscons_keydesc ukbd_keydesctab[] |