[Vm-dev] INFO REQUEST: key & mouse state machine / API

ken.dickey at whidbey.com ken.dickey at whidbey.com
Thu Dec 26 17:58:38 UTC 2019


Greetings,

I have a side project to get the vm-display-fbdev up on Linux using 
libevdev.

I am at the point where I have hacked the evtest program to capture 
events bu need more info to "fill out the forms" (i.e. register events).

At this point I am confused as to the current state of "Cross Platform 
Input Event" handling.

A state machine and usage API would be most helpful.


Current Status:

Events come in at each (debounced) keypress, with repeats 
[sample-events.txt].

KeyModifiers (and MouseBUttons) are tracked as expected [misc-code.txt]

I need to fill in the event structures [e.g. record-key.txt].

I have been looking through the "Porting Squeak" and source code.


As the "Cross-platform differences for CTRL keys" topic has been raised 
here, a state machine recognizer would be helpful to understand how 
mouse/key/trackpad/gamepad/.. events are recognized across platforms  -- 
along with scancode>keycode translation mappings.

Perhaps a good project to undertake?


Any hints appreciated.  I really am confused as to what mappings are 
required.

Thanks much,
-KenD
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sample-events.txt
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20191226/22ebd4bc/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: record-key.txt
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20191226/22ebd4bc/attachment-0001.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: misc-code.txt
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20191226/22ebd4bc/attachment-0002.txt>


More information about the Vm-dev mailing list