wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
nsyskbd.h File Reference
#include <wut.h>
Include dependency graph for nsyskbd.h:

Go to the source code of this file.

Data Structures

struct  KBDAttachEvent
 
struct  KBDKeyEvent
 

Typedefs

typedef struct KBDAttachEvent KBDAttachEvent
 
typedef struct KBDKeyEvent KBDKeyEvent
 
typedef void(* KDBAttachCallback) (KBDAttachEvent *channel)
 
typedef void(* KDBKeyCallback) (KBDKeyEvent *event)
 
typedef enum KDBCountry KDBCountry
 
typedef enum KDBError KDBError
 

Enumerations

enum  KDBCountry {
  KDB_COUNTRY_UNKNOWN_0 = 0 ,
  KDB_COUNTRY_UNKNOWN_1 = 1 ,
  KDB_COUNTRY_UNKNOWN_2 = 2 ,
  KDB_COUNTRY_UNKNOWN_3 = 3 ,
  KDB_COUNTRY_UNKNOWN_4 = 4 ,
  KDB_COUNTRY_UNKNOWN_5 = 5 ,
  KDB_COUNTRY_UNKNOWN_6 = 6 ,
  KDB_COUNTRY_UNKNOWN_7 = 7 ,
  KDB_COUNTRY_UNKNOWN_8 = 8 ,
  KDB_COUNTRY_UNKNOWN_9 = 9 ,
  KDB_COUNTRY_UNKNOWN_10 = 10 ,
  KDB_COUNTRY_UNKNOWN_11 = 11 ,
  KDB_COUNTRY_UNKNOWN_12 = 12 ,
  KDB_COUNTRY_UNKNOWN_13 = 13 ,
  KDB_COUNTRY_UNKNOWN_14 = 14 ,
  KDB_COUNTRY_UNKNOWN_15 = 15 ,
  KDB_COUNTRY_UNKNOWN_16 = 16 ,
  KDB_COUNTRY_UNKNOWN_17 = 17 ,
  KDB_COUNTRY_UNKNOWN_18 = 18
}
 
enum  KDBError {
  KDB_ERROR_NONE = 0 ,
  KDB_ERROR_NOT_INITIALIZED = 2 ,
  KDB_ERROR_ALREADY_INITIALIZED = 3 ,
  KDB_ERROR_INVALID_COUNTRY = 4
}
 

Functions

KDBError KBDInit (uint32_t unused, KDBAttachCallback attachCallback, KDBAttachCallback detachCallback, KDBKeyCallback keyCallback)
 
KDBError KBDSetup (KDBAttachCallback attachCallback, KDBAttachCallback detachCallback, KDBKeyCallback keyCallback)
 
KDBError KBDTeardown ()
 
KDBError KBDSetCountry (uint8_t channel, KDBCountry country)
 

Data Structure Documentation

◆ KBDAttachEvent

struct KBDAttachEvent

Definition at line 9 of file nsyskbd.h.

Data Fields
uint8_t channel

◆ KBDKeyEvent

struct KBDKeyEvent

Definition at line 16 of file nsyskbd.h.

Data Fields
uint8_t channel
uint8_t hidCode
BOOL isPressedDown
uint16_t asUTF16Character

Typedef Documentation

◆ KBDAttachEvent

◆ KBDKeyEvent

typedef struct KBDKeyEvent KBDKeyEvent

◆ KDBAttachCallback

typedef void(* KDBAttachCallback) (KBDAttachEvent *channel)

Definition at line 31 of file nsyskbd.h.

◆ KDBKeyCallback

typedef void(* KDBKeyCallback) (KBDKeyEvent *event)

Definition at line 33 of file nsyskbd.h.

◆ KDBCountry

typedef enum KDBCountry KDBCountry

◆ KDBError

typedef enum KDBError KDBError

Enumeration Type Documentation

◆ KDBCountry

enum KDBCountry
Enumerator
KDB_COUNTRY_UNKNOWN_0 
KDB_COUNTRY_UNKNOWN_1 
KDB_COUNTRY_UNKNOWN_2 
KDB_COUNTRY_UNKNOWN_3 
KDB_COUNTRY_UNKNOWN_4 
KDB_COUNTRY_UNKNOWN_5 
KDB_COUNTRY_UNKNOWN_6 
KDB_COUNTRY_UNKNOWN_7 
KDB_COUNTRY_UNKNOWN_8 
KDB_COUNTRY_UNKNOWN_9 
KDB_COUNTRY_UNKNOWN_10 
KDB_COUNTRY_UNKNOWN_11 
KDB_COUNTRY_UNKNOWN_12 
KDB_COUNTRY_UNKNOWN_13 
KDB_COUNTRY_UNKNOWN_14 
KDB_COUNTRY_UNKNOWN_15 
KDB_COUNTRY_UNKNOWN_16 
KDB_COUNTRY_UNKNOWN_17 
KDB_COUNTRY_UNKNOWN_18 

Definition at line 35 of file nsyskbd.h.

◆ KDBError

enum KDBError
Enumerator
KDB_ERROR_NONE 
KDB_ERROR_NOT_INITIALIZED 
KDB_ERROR_ALREADY_INITIALIZED 
KDB_ERROR_INVALID_COUNTRY 

Definition at line 57 of file nsyskbd.h.

Function Documentation

◆ KBDInit()

KDBError KBDInit ( uint32_t  unused,
KDBAttachCallback  attachCallback,
KDBAttachCallback  detachCallback,
KDBKeyCallback  keyCallback 
)

◆ KBDSetup()

KDBError KBDSetup ( KDBAttachCallback  attachCallback,
KDBAttachCallback  detachCallback,
KDBKeyCallback  keyCallback 
)

◆ KBDTeardown()

KDBError KBDTeardown ( )

◆ KBDSetCountry()

KDBError KBDSetCountry ( uint8_t  channel,
KDBCountry  country 
)