Is there a C/C++ function that maps KeyCode to character?
This function will run on a PC (not on Teensy).
I am writing a keyboard simulator to test keyboard software on my PC before uploading it to Teensy.
I am looking for something like KeyCode_to_char(), which does not exist as far as I know:
Thank you.
This function will run on a PC (not on Teensy).
I am writing a keyboard simulator to test keyboard software on my PC before uploading it to Teensy.
I am looking for something like KeyCode_to_char(), which does not exist as far as I know:
Code:
#include <iostream>
// key code copied from arduino-1.0.5\hardware\teensy\cores\teensy\keylayouts.h
#define KEY_A ( 4 | 0x4000 )
int main()
{
std::cout << KeyCode_to_char(KEY_A);
}
Thank you.