USB Keyboard? January 05, 2009 10:54PM | Registered: 16 years ago Posts: 443 |
int main(int argc, char **argv) { keyboardEvent kbData; // Snip while( !(WPAD_ButtonsHeld(WPAD_CHAN_0) & WPAD_BUTTON_HOME) ) { WPAD_ScanPads(); KEYBOARD_ScanKeyboards(); KEYBOARD_getEvent(&kbData); printf("%d was pressed\n", kbData.keysym.scancode); } // Snip return(0); } void startupApp() { // Snip KEYBOARD_Init(); KEYBOARD_putOnLed(USBKEYBOARD_LEDNUM); // Snip } void shutdownApp() { // Snip KEYBOARD_Deinit(); // Snip }It doesn't error, the Wiimote always responds to the Home button, but I never get a "was pressed" output. The NumLock LED doesn't come on either.
Re: USB Keyboard? January 06, 2009 10:44AM | Registered: 16 years ago Posts: 265 |
Re: USB Keyboard? January 06, 2009 11:52AM | Registered: 16 years ago Posts: 443 |
Re: USB Keyboard? January 06, 2009 06:24PM | Registered: 16 years ago Posts: 73 |
Re: USB Keyboard? January 06, 2009 06:28PM | Registered: 16 years ago Posts: 443 |