Problems with USB keyboard (keydown and inkey)


Author Message
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 757
Posted: 09:37am 03 Oct 2025      

Hmm..

I am playing for hours now and have no success + the code will be much much more complicated because I have to do everything manually:

1. catch the raw USB code for the german "Umlaut" via MM.USB (downkey(1) does not do this for those keys!)

2. get a constant feedback of the SHIFT modifier via downkey(7)

3. map all cases for the raw USB code to ASCII values and then link them to the
corresponding custom Font character

My best guess is that all this takes too much time or processing power. There is always a missing character and the already existing program code would be hugely more complicated.

My wish would be a function like MM.info(ps2) that behaves exactly like this, so that there is no need for:

1. checking the modifier via a different function
2. resetting the value of the pressed key again and again "by hand" to zero

USB is so much more complicated...

Greetings
Daniel