USB Keyboard IF

Nagging hardware related question? Post here!
Derek_Stewart
Font of All Knowledge
Posts: 3973
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: USB Keyboard IF

Post 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


Regards,

Derek
User avatar
xelalex
Bent Pin Expansion Port
Posts: 94
Joined: Thu Aug 04, 2011 9:55 am

Re: USB Keyboard IF

Post by xelalex »

Yes, simultaneous key presses are supported.


Maskenlos
Over Heated PSU
Posts: 141
Joined: Sat Nov 03, 2018 12:14 pm

Re: USB Keyboard IF

Post 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


Maskenlos
Over Heated PSU
Posts: 141
Joined: Sat Nov 03, 2018 12:14 pm

Re: USB Keyboard IF

Post by Maskenlos »

Update
20220107_171753.jpg
20220107_171534.jpg
Stephan


User avatar
Ruptor
Gold Card
Posts: 418
Joined: Fri Dec 20, 2019 2:23 pm
Location: London

Re: USB Keyboard IF

Post 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?


Maskenlos
Over Heated PSU
Posts: 141
Joined: Sat Nov 03, 2018 12:14 pm

Re: USB Keyboard IF

Post 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


User avatar
Ruptor
Gold Card
Posts: 418
Joined: Fri Dec 20, 2019 2:23 pm
Location: London

Re: USB Keyboard IF

Post 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?


User avatar
xelalex
Bent Pin Expansion Port
Posts: 94
Joined: Thu Aug 04, 2011 9:55 am

Re: USB Keyboard IF

Post 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.


Maskenlos
Over Heated PSU
Posts: 141
Joined: Sat Nov 03, 2018 12:14 pm

Re: USB Keyboard IF

Post 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.


User avatar
Ruptor
Gold Card
Posts: 418
Joined: Fri Dec 20, 2019 2:23 pm
Location: London

Re: USB Keyboard IF

Post 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. :)


Post Reply