[squeak-dev] Touchscreen events and non-blocking file I/O (was Re: Mouse Wheel Events, "Point and scroll-by-wheel")

Levente Uzonyi leves at caesar.elte.hu
Wed Jun 8 17:43:28 UTC 2016


On Wed, 8 Jun 2016, Tony Garnock-Jones wrote:

> On 06/08/2016 11:03 AM, marcel.taeumel wrote:
>> So, if you had real touch/swipe events and could do kinetic scrolling...
>> this would we very cool. :)
>
> I've previously tried to read touchscreen events on Linux from
> /dev/input/event*, but ran into trouble because the Squeak VMs I tried
> all treat "file I/O" as blocking - that is, bytes will be immediately
> available, or end-of-file will be immediately available.
>
> This is, of course, not true for /dev/input/event* ! Reading from such
> files is much more like reading from a socket.
>
> Does any kind of plugin or overlooked primitive exist that'd allow for
> non-blocking reads from /dev/input/event* pseudofiles?

I guess you can use the AIO plugin for that, or you can use OSProcess, 
which also uses the AIO plugin for non-blocking reads.

Levente

>
> Tony
>
>


More information about the Squeak-dev mailing list