emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Touchscreen support


From: Eli Zaretskii
Subject: Re: Touchscreen support
Date: Tue, 21 Dec 2021 14:11:14 +0200

> From: Po Lu <luangruo@yahoo.com>
> Cc: larsi@gnus.org,  monnier@iro.umontreal.ca,  emacs-devel@gnu.org
> Date: Tue, 21 Dec 2021 09:08:22 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > So the events from X will be delivered via read_socket_hook, then the
> > code which reads these events will call Lisp, and then it will turn
> > around and feed the synthetic events it produces back into the input
> > queue?  That's exactly what I prefer to avoid, since there's no way in
> > the world you will be able to pretend that the synthetic events were
> > delivered in the same place as the real ones: some additional events
> > could have arrived meanwhile.
> 
> Hmm, is there some other mechanism we can use?  Or perhaps we can design
> a new mechanism for Lisp code to translate sequences of lower-level
> events into high level ones?

The code which processes low-level events in keyboard.c could call
Lisp, which would return higher-level events, and then you
fall-through to the handling of higher-level events back in
keyboard.c.  Or something to that effect.

But I think we first need an idea about what kind of even translation
is needed, or maybe you already know and can present it?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]