[Vm-dev] "raw" keyboard events form the VM on unix?

Igor Stasenko siguctua at gmail.com
Thu May 27 08:42:43 UTC 2010


On 27 May 2010 10:58, Bert Freudenberg <bert at freudenbergs.de> wrote:
>
> On 27.05.2010, at 04:32, David T. Lewis wrote:
>>
>>
>> On Wed, May 26, 2010 at 02:12:03PM -0700, Eliot Miranda wrote:
>>>
>>> Hi All,
>>>
>>>    is there any way to get the unix VM to deliver raw keyboard events, or
>>> at least control and shift key presses?
>>
>> I don't know enough to fully answer this, but I am fairly sure that
>> the answer will turn out to be yes.
>
> Well I assume Eliot meant "... without hacking the VM" in which case the answer would be "no". Everything else is just ASMOP, but he knows that ;)

I would really like to be able handle "raw" key events instead of
ones, preprocessed by OS.

http://lists.squeakfoundation.org/pipermail/squeak-dev/2009-June/136516.html

>
> - Bert -
>
>> Assuming that the unix VM is running under X11, the raw information
>> would be in the form of X11 events, which are translated into some more
>> generic Squeak event format in platforms/unix/vm-display-X11/sqUnixX11.c.
>>
>> The low level keyboard event information, including shift key presses,
>> would be represented as XKeyEvents, so I would expect that there is
>> some way to make these available as events in the VM.
>>
>> X11 definitely does understand the shift keys, see for example
>> /usr/include/X11/keysymdef.h.
>>
>> John's API documentation may help: <http://isqueak.org/ioProcessEvents>
>>
>> Dave
>>
>
>
>
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list