There was a talk on the irc channel about using USB keyboards, so I have wipped up a header to do just that. It is GPLed, but as always I grant you the right to statically and dynamically link to it for closed source robots. If you modify the header however, you have to share your modifications to the header with us.
KeyCBC Repository
Test program that prompts for a user's name and then prints it back:
int main(int argc, char* argv) { // Make sure we clean up atexit(closeKeyboard); // Open the keyboard for use if (openKeyboard() == FALSE) { } // Create a buffer to fill with our name char buffer[256]; // Get a string from the user, the TRUE represents // whether or not you want it to type the // name on the screen as you type it in. getString(buffer, 256, TRUE); return 0; }
You should really join us on the IRC. Good discussions, plenty of support.
Please tell me of any problems or other feedback either on the Repository page or here!
Thanks,
Braden (Beta) McDorman