RetroArch
wiiu
include
wiiu
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,
12
KBD_WIIU_REPEAT
= 0x02,
13
KBD_WIIU_NULL
= 0x00
14
}
KEYState
;
15
16
typedef
enum
_KBDModifier
17
{
18
KBD_WIIU_CTRL
= 0x0001,
19
KBD_WIIU_SHIFT
= 0x0002,
20
KBD_WIIU_ALT
= 0x0004,
21
KBD_WIIU_NUM_LOCK
= 0x0100,
22
KBD_WIIU_CAPS_LOCK
= 0x0200,
23
KBD_WIIU_SCROLL_LOCK
= 0x0400,
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
KBD_WIIU_DOWN
Definition:
nsyskbd.h:11
KBDKeyEvent
struct _KBDKeyEvent KBDKeyEvent
KBD_WIIU_REPEAT
Definition:
nsyskbd.h:12
KBDSetup
char KBDSetup(void *connection_callback, void *disconnection_callback, void *key_callback)
KEYState
enum _KEYState KEYState
_KBDModifier
_KBDModifier
Definition:
nsyskbd.h:16
_KBDKeyEvent::channel
unsigned char channel
Definition:
nsyskbd.h:28
_KBDKeyEvent::UTF16
unsigned short UTF16
Definition:
nsyskbd.h:32
_KBDKeyEvent
Definition:
nsyskbd.h:26
_KBDKeyEvent::scancode
unsigned char scancode
Definition:
nsyskbd.h:29
KBD_WIIU_NUM_LOCK
Definition:
nsyskbd.h:21
types.h
_KBDKeyEvent::modifier
KBDModifier modifier
Definition:
nsyskbd.h:31
KBD_WIIU_SCROLL_LOCK
Definition:
nsyskbd.h:23
KBD_WIIU_CTRL
Definition:
nsyskbd.h:18
KBD_WIIU_ALT
Definition:
nsyskbd.h:20
KBD_WIIU_SHIFT
Definition:
nsyskbd.h:19
_KBDKeyEvent::state
KEYState state
Definition:
nsyskbd.h:30
KBD_WIIU_CAPS_LOCK
Definition:
nsyskbd.h:22
KBDTeardown
char KBDTeardown()
KBD_WIIU_NULL
Definition:
nsyskbd.h:13
_KEYState
_KEYState
Definition:
nsyskbd.h:9
KBDModifier
enum _KBDModifier KBDModifier
Generated by
1.8.15