If I poll keyboard events with SDL2 all I get is the pressed key and the modifiers. But I am using Neo and have some keys like Esc and arrow keys on a different layer which means that e.g.
Mod4+i is the same as the left arrow key.
How can I get the modified key from SDL2?
The same problem occurs to me when I want to handle special chars which are located on different keys on different keyboard layouts (
/ for example has a dedicated key on US layout while on German layout it is located at
I already found the text input mode, but this seams rather unfitting as one gets a string instead of a single key.
Edit 2: I just found another problem .. SDL doesn't recognize
Mod4 so when pressing
Mod4 plus another key, the
mod field is still
0. Other modifiers like