Re: libinput polling

2014-07-15 Thread Stefanos A.
2014-07-15 17:32 GMT+02:00 Thiago Macieira : > On Tuesday 15 July 2014 11:51:40 Stefanos A. wrote: > > while (!exit) { > > int ret = poll(&pfd, 1, -1); > > if (ret < 0) { > > // ret is always -1 > > exit = ret; > > } > > else { > >

Re: libinput polling

2014-07-15 Thread Thiago Macieira
On Tuesday 15 July 2014 11:51:40 Stefanos A. wrote: > while (!exit) { > int ret = poll(&pfd, 1, -1); > if (ret < 0) { > // ret is always -1 > exit = ret; > } > else { > // never gets here > libinput_dispatch(input_c

Re: libinput polling

2014-07-15 Thread Stefanos A.
Forgot to mention that I am using libinput 0.2.0 and libsystemd 215 (latest versions available on Arch). ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

libinput polling

2014-07-15 Thread Stefanos A.
Hello everyone, I am trying out libinput as an input backend for OpenTK[1] when running on a VT terminal. Using weston as a reference, I have managed to get keyboard input working as expected. The API is pleasantly terse, with very little of the X11/XI2 non-sense remaining. There is one thing I h