Page 3 of 4

Re: USB Keyboard IF

Posted: Mon Dec 27, 2021 11:33 am
by Derek_Stewart
Hi

This confirms what I did on paper.

I was wondering whether to hard wire the QL keyboard matrix to the MT8813, or make a user configurable pad so that any keyboard configuration can be setup.

I suppose the pressing of 2 keys at once can be handled in software, like CTRL C

Re: USB Keyboard IF

Posted: Mon Dec 27, 2021 12:05 pm
by xelalex
Yes, simultaneous key presses are supported.

Re: USB Keyboard IF

Posted: Mon Dec 27, 2021 1:37 pm
by Maskenlos
You also can define one key to act the same as a simultaneous key press.

For example: Define Key "F6" to act as press CTRL-C

Re: USB Keyboard IF

Posted: Fri Jan 07, 2022 4:28 pm
by Maskenlos
Update
20220107_171753.jpg
20220107_171534.jpg
Stephan

Re: USB Keyboard IF

Posted: Thu Dec 08, 2022 2:22 pm
by Ruptor
XorA wrote: Thu Dec 23, 2021 9:58 pmI am working on the firmware for a very similar USB->QL keyboard adapter!
How does a USB keyboard deal with the triple key presses of the QL mechanism delete word left & right as CTRL & ALT & back or forward arrow?

Re: USB Keyboard IF

Posted: Thu Dec 08, 2022 8:42 pm
by Maskenlos
It behaves as it should be:

Shift + CTRL + "<-" deletes the word on left
ALT + CTRL + "<-" deletes the line on the left

I just tried it again to be sure.

Stephan

Re: USB Keyboard IF

Posted: Thu Dec 08, 2022 9:02 pm
by Ruptor
Maskenlos wrote: Thu Dec 08, 2022 8:42 pmI just tried it again to be sure.
Thanks but it doesn't answer my question of how they are handled. Is the triplet a unique ascii code converted to the pressing of three lines?

Re: USB Keyboard IF

Posted: Thu Dec 08, 2022 9:21 pm
by xelalex
Ruptor wrote: Thu Dec 08, 2022 9:02 pm Thanks but it doesn't answer my question of how they are handled. Is the triplet a unique ascii code converted to the pressing of three lines?
No, Spectratur translates key strokes, not characters. So when pressing the three keys on the USB keyboard, three distinct key events are generated. Each of those gets translated into the closing of the appropriate switch in the MT88xx switch matrix.

Re: USB Keyboard IF

Posted: Thu Dec 08, 2022 9:32 pm
by Maskenlos
Ruptor wrote: Thu Dec 08, 2022 9:02 pm
Maskenlos wrote: Thu Dec 08, 2022 8:42 pmI just tried it again to be sure.
Thanks but it doesn't answer my question of how they are handled. Is the triplet a unique ascii code converted to the pressing of three lines?
Sorry for misreading your question. I thought you just ask whether triple key strokes works in general.

Re: USB Keyboard IF

Posted: Fri Dec 09, 2022 5:09 pm
by Ruptor
xelalex wrote: Thu Dec 08, 2022 9:21 pmNo, Spectratur translates key strokes, not characters. So when pressing the three keys on the USB keyboard, three distinct key events are generated. Each of those gets translated into the closing of the appropriate switch in the MT88xx switch matrix.
Thanks for explaining I haven't looked into how normal keyboards work. :)