makegeneve
Member
Hi,
I'm trying to tweak some code written five years ago for the Teensy 2.0. Back then, KEYCODE_TYPE and the KEY_xxx codes were an unsigned chars, and the code worked fine.
Now, with the changes to enable media keys on Teensy 2.0, the KEY_xxx keys are either unsigned char or unsigned int (for unicode) and I cannot see what I have to define to make it unsigned char. It is defaulting to unsigned int (for unicode) rather than unsigned chart (for ASCII).
I just want to compile my code and make an unrelated tweak (this code is reading an Infra-red remote control and generating USB keyboard keypresses).
Does anyone know how I can ask the USB keyboard support to either make KEYCODE_TYPE be a 16 bit int or that the KEY_xxx codes generate an 8 bit char?
Thanks,
Paul
I'm trying to tweak some code written five years ago for the Teensy 2.0. Back then, KEYCODE_TYPE and the KEY_xxx codes were an unsigned chars, and the code worked fine.
Now, with the changes to enable media keys on Teensy 2.0, the KEY_xxx keys are either unsigned char or unsigned int (for unicode) and I cannot see what I have to define to make it unsigned char. It is defaulting to unsigned int (for unicode) rather than unsigned chart (for ASCII).
I just want to compile my code and make an unrelated tweak (this code is reading an Infra-red remote control and generating USB keyboard keypresses).
Does anyone know how I can ask the USB keyboard support to either make KEYCODE_TYPE be a 16 bit int or that the KEY_xxx codes generate an 8 bit char?
Thanks,
Paul
Last edited: