[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Adds cross-platform compatible virtual-key codes to vm-display-x11 plugin (#599)
notifications at github.com
Tue Oct 5 07:35:20 UTC 2021
> My issue is that we migh be introducing some new code here without having them mean anything anywhere else…
Yes. It would be better if we had access to both the "keysym" and the "keycode" in the Smalltalk image. Unfortunately, there is only a single value reserved for this in our event structure. So, we have to merge both value ranges in a meaningful way. I just did that. You can restore the "keysym" in the image by setting 0xff__ again.
Do you have a better Idea on merging "keysym" (special keys and alpha-num latin-1) and "keycode" (for shifted alpha-num keys) into a single value? That single-byte lookup table in Squeak is quite handy ... and fast. :-) And what the other two platforms provide.
> Also, what does "virtual" mean here? are we trying to map to the thing printed on the keyborard or to the position of the key pressed?
The concept stems from the MSDN documentation. I elaborated on this topic several times on squeak-dev already:
The code reads `xkey2sqVirtualKeyCode`, which clarifies its meaning within the Smalltalk image.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev