RetroArch
nsyskbd.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <wiiu/types.h>
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 typedef enum _KEYState
10 {
11  KBD_WIIU_DOWN = 0x01,
14 } KEYState;
15 
16 typedef enum _KBDModifier
17 {
18  KBD_WIIU_CTRL = 0x0001,
19  KBD_WIIU_SHIFT = 0x0002,
20  KBD_WIIU_ALT = 0x0004,
24 } KBDModifier;
25 
26 typedef struct _KBDKeyEvent
27 {
28  unsigned char channel;
29  unsigned char scancode; /* scancode */
30  KEYState state; /* when held, value is 0x03, which is KBD_DOWN & KBD_REPEAT */
31  KBDModifier modifier; /* modifier state */
32  unsigned short UTF16; /* unicode, if any */
33 } KBDKeyEvent;
34 
35 char KBDSetup(void *connection_callback, void *disconnection_callback, void *key_callback);
36 char KBDTeardown();
37 
38 #ifdef __cplusplus
39 }
40 #endif
Definition: nsyskbd.h:11
struct _KBDKeyEvent KBDKeyEvent
Definition: nsyskbd.h:12
char KBDSetup(void *connection_callback, void *disconnection_callback, void *key_callback)
enum _KEYState KEYState
_KBDModifier
Definition: nsyskbd.h:16
unsigned char channel
Definition: nsyskbd.h:28
unsigned short UTF16
Definition: nsyskbd.h:32
Definition: nsyskbd.h:26
unsigned char scancode
Definition: nsyskbd.h:29
Definition: nsyskbd.h:21
KBDModifier modifier
Definition: nsyskbd.h:31
Definition: nsyskbd.h:23
Definition: nsyskbd.h:18
Definition: nsyskbd.h:20
Definition: nsyskbd.h:19
KEYState state
Definition: nsyskbd.h:30
Definition: nsyskbd.h:22
char KBDTeardown()
Definition: nsyskbd.h:13
_KEYState
Definition: nsyskbd.h:9
enum _KBDModifier KBDModifier