Hello Cemetech,
It's been a while ... I have been working on Oxygen's input routine and need some help / explanations. I have currently set up the basic functionality of text and number input. But I also want to input math characters like basic operations (+, -, /, *, ^ , `,`) and parenthesis. Could someone point me to documentation or whatnot? I'll be extremely grateful.
Current (character encoding) code:
Code:
I am assuming that I should change the string encoding on the Key[2] but to what exactly, I don't know where to find font encoding and where to look?
It's been a while ... I have been working on Oxygen's input routine and need some help / explanations. I have currently set up the basic functionality of text and number input. But I also want to input math characters like basic operations (+, -, /, *, ^ , `,`) and parenthesis. Could someone point me to documentation or whatnot? I'll be extremely grateful.
Current (character encoding) code:
Code:
// Keys[0] = Upper Case Alpha | Keys[1] = Lower Case Alpha | Key[2] = Numerical
const char *keys[3] = {"\0\0\0\0\0\0\0\0\0\0\0WRMH\0\0?\0VQLG\0\0.ZUPKFC\0 YTOJEB\0\0XSNIDA\0\0\0\0\0\0\0\0\0",
"\0\0\0\0\0\0\0\0\0\0\0wrmh\0\0?\0vqlg\0\0.zupkfc\0 ytojeb\0\0xsnida\0\0\0\0\0\0\0\0\0",
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0-\x33\x36\x39)\0\0\0.\x32\x35\x38(\0\0\0\x30\x31\x34\x37,\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"};
// ... Keystrokes code below
I am assuming that I should change the string encoding on the Key[2] but to what exactly, I don't know where to find font encoding and where to look?