In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "Nsyskbd.rpl"

From WiiUBrew
Jump to navigation Jump to search
(Created page with "nsyskbd.rpl is the system library that allows applications to use the Wii U's USB keyboard. == Functions == ===Initialisation=== {| class="wikitable" !Prototype !Description...")
 
Line 10: Line 10:
 
|<code>char KBDSetup((void*)connection_callback,(void*)disconnection_callback,(void*)key_callback)</code>
 
|<code>char KBDSetup((void*)connection_callback,(void*)disconnection_callback,(void*)key_callback)</code>
 
|Initializes the USB keyboard library and return 0 if successfull; connection and disconnection callback are called repectively at the connection or disconnection of an usb keyboard; key callback is called when some key event occurs
 
|Initializes the USB keyboard library and return 0 if successfull; connection and disconnection callback are called repectively at the connection or disconnection of an usb keyboard; key callback is called when some key event occurs
 +
|-
 +
|<code>char KBDTeardown()</code>
 +
|Deinitializes the USB keyboard library and return 0 if the deinitialization was successfull
 +
|-
 +
|<code>char KBDInit((void*)unknown,(void*)connect_callback,(void*)disconnect_callback,(void*)key_callback);</code>
 +
|Pass arguments to KBDSetup (probably an old function left for compatibility); should returns 0 if successfull
 +
|-
 +
|<code>char KBDExit();</code>
 +
|Calls KBDTeardown() (probably an old function left for compatibility); should returns 0 if successfull
 
|-
 
|-
 
|}
 
|}
 +
NOTE: Data Types could be wrong

Revision as of 11:04, 2 September 2016

nsyskbd.rpl is the system library that allows applications to use the Wii U's USB keyboard.


Functions

Initialisation

Prototype Description
char KBDSetup((void*)connection_callback,(void*)disconnection_callback,(void*)key_callback) Initializes the USB keyboard library and return 0 if successfull; connection and disconnection callback are called repectively at the connection or disconnection of an usb keyboard; key callback is called when some key event occurs
char KBDTeardown() Deinitializes the USB keyboard library and return 0 if the deinitialization was successfull
char KBDInit((void*)unknown,(void*)connect_callback,(void*)disconnect_callback,(void*)key_callback); Pass arguments to KBDSetup (probably an old function left for compatibility); should returns 0 if successfull
char KBDExit(); Calls KBDTeardown() (probably an old function left for compatibility); should returns 0 if successfull

NOTE: Data Types could be wrong