MTek-GDL 0.100.4-muffintrap
Loading...
Searching...
No Matches
Namespaces | Functions
Input Module

Functions for handling USB keyboard and mouse input devices. More...

Namespaces

namespace  gdl::Keyboard
 Keyboard namespace.
 

Functions

typedef gdl::void (ConnectCallbackFunc(bool))
 Keyboard and mouse connect/disconnect callback.
 

Detailed Description

Functions for handling USB keyboard and mouse input devices.

Using a USB keyboard and mouse for input is most useful for prototyping/development purposes as it initializes faster than a Wiimote and is very beneficial for testing purposes. It can also assist in porting PC projects that use MTek-GDL to the Wii as you don't have to rewrite its input code so you can focus on porting over platform-specific code. However it is not advisable to make Wii homebrew that only supports USB keyboard/mouse input as not everyone likes to use those on a home console.

The keyboard and mouse subsystems support hot-plugging which means you can detach and reconnect either devices at any time. However hot-plugging is not 100% perfect such as unplugging the keyboard connected to the first USB port while a mouse is plugged to the second USB port, the keyboard may sometimes not initialize (when all status lights blink for a split second) when reconnected until the mouse has been disconnected. Both USB devices will still be recognized when connected through a USB hub in case you have a USB storage device or a Broadband Adapter connected to one of the console's USB ports.

This input module actually uses wiiKeyboard for USB keyboard handling and libogc (which actually has built-in USB mouse support in the library) for USB mouse handling.

Note
This is a fairly new implementation of this library which means you might run into some problems when using this module. Hopefully, its very unlikely for such issues to happen for the most part.