Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to support(register) multiple input devices? #283

Open
incity opened this issue Jun 27, 2023 · 2 comments
Open

how to support(register) multiple input devices? #283

incity opened this issue Jun 27, 2023 · 2 comments

Comments

@incity
Copy link

incity commented Jun 27, 2023

There is no interface to register devices with libinput_read_state.(3 parameters)

13e8eaa807ba78a1d1555fe83cfb9f7
5ba0ca1c82620778cdb9aad4050af7a
82797b9b91210ae649b9de199c535d5
df09e8e4499ad0c5a5a4e7868b6bf4b

@kisvegabor
Copy link
Member

@Johennes could you comment on this?

@Johennes
Copy link
Contributor

@incity you need to define a custom callback and inside of it call libinput_read_state with the state extracted from the driver's user_data field. See e.g. https://gitlab.com/cherrypicker/unl0kr/-/blob/master/indev.c#L357.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants