-
Notifications
You must be signed in to change notification settings - Fork 160
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
Add support for keyboard/mouse #16
Comments
Hi, We have drivers for libinput and evdev. See here. |
Would you accept a PR for adding them to this example or is that out of scope for this repo? |
Sure! The libinput_find_devs();
libinput_init_state();
libinput_read_state(); These updates were added by @Johennes, so there are any questions probably he can help. 🙂 |
@kisvegabor I have a RPI 3B with Waveshare 2.8" 480x640 TFT with capacitive touch. What all changes are required to make it work? By just switching drivers to master and copying drv_conf to local gives this error.
|
Just updated, see #20 (comment) Basically, it's just the lack of manpower that we can't keep all the ports up to date. 🙁 |
@kisvegabor After I shared LVGL+WT32-SC01 on FB groups, several people bought WT32-SC01 as well. Trying to do what I can to support LVGL 😊 |
Sounds great, thank you! 🙂 |
This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still a relevant feature proposal |
Have you tried the libinput drivers mentioned here? |
This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I assume that setting the libinput definitions in lv_port_linux/lv_conf.h are enough. Please note that there is no #define LIBINPUT_NAME nor #define EVDEV_NAME in this file. When I did this (#define LV_USE_LIBINPUT 1) it did not solve the lack of mouse input. In my case I'm only modifying: lv_conf.h
main.c
...and the bug described by this report of lack of mouse input is still not solved. |
I assume that you mean:
...and that there are missing arguments to the functions that we should find on our own. It would be great to have an example source file where these functions are coded and working properly. |
Is it possible to use the keyboard/mouse when running this demo? Currently this does not seem to be the case.
Adding rudimentary keyboard support might not be too hard as one can just read from stdin (or use
termios
to not wait for Enter). Mouse support might be harder but should also be possible using/dev/input/mouse
or similar.The text was updated successfully, but these errors were encountered: