|
From: alvin (<alv...@ho...> - 2017-06-20 23:41:36
|
>I was trying to work out how you might detect the "Break" combination - CAPS SHIFT+Space. There doesn't appear to be a way to get in_key_scancode() to give you that, so I guessed it uses the top bits, something like:
>
>[code] uint16_t break_scancode = in_key_scancode(' ');
>break_scancode |= 0x8000;
>...
>printf("Scan for <break> returns 0x%04X\n", in_key_pressed( break_scancode ));[/code]
>Empirically, it seems the top bit looks for CAPS and the second top bit looks for SYM. Since I'm writing it up, can you confirm that's the way to do it?
Yes that's the way to do it.
0x8000 for caps, 0x4000 for sym
|