[Wayland, libinput] Question about libinput
Beomho Seo
beomho.seo at samsung.com
Wed Mar 18 22:29:05 PDT 2015
On 03/12/2015 06:28 AM, Peter Hutterer wrote:
> On Wed, Mar 11, 2015 at 05:01:32PM +0900, Beomho Seo wrote:
>> Hi everyone,
>>
>> I have a question about libinput.
>>
>> I will handle a rotary input device. It is able to provide angular information
>> (increase, decrease), elocity and push/relase(like key) event. I hope to use
>> libinput to handle rotary event.
>>
>> Would you give me some advice?
>
> best to file a bug and attach an evemu-describe output of the device, or
> even better an example event recording with evemu-record. That allows us to
> emulate the device and look at how we can support it.
>
> Cheers,
> Peter
>
Thank you for your comment.
I tried to use evemu but unfortunately I could not.
So I use evtest instead of evemu on my board.
Test log below,
sh-3.2# ./evtest /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x1 product 0x1 version 0x100
Input device name: "rotary"
Supported events:
Event type 0 (Sync)
Event type 2 (Relative)
Event code 0 (X)
Testing ... (interrupt to exit)
Event: time 1357175592.602014, type 2 (Relative), code 0 (X), value 3
Event: time 1357175592.602052, -------------- Report Sync ------------
Event: time 1357175592.611640, type 2 (Relative), code 0 (X), value 2
Event: time 1357175592.611683, -------------- Report Sync ------------
Event: time 1357175592.621824, type 2 (Relative), code 0 (X), value 2
Event: time 1357175592.621884, -------------- Report Sync ------------
Event: time 1357175592.669391, type 2 (Relative), code 0 (X), value -1
Event: time 1357175592.669436, -------------- Report Sync ------------
Event: time 1357175592.676849, type 2 (Relative), code 0 (X), value -1
Event: time 1357175592.676887, -------------- Report Sync ------------
Event: time 1357175592.686479, type 2 (Relative), code 0 (X), value -1
Event: time 1357175592.686515, -------------- Report Sync ------------
[...]
This device driver provide relevant axis information.
Value data since last polling was done.
I want to know libinput how to control these data.
Best regards,
Beomho
More information about the wayland-devel
mailing list