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

Add support for keyboard/mouse #16

Open
septatrix opened this issue Oct 28, 2021 · 11 comments
Open

Add support for keyboard/mouse #16

septatrix opened this issue Oct 28, 2021 · 11 comments
Labels

Comments

@septatrix
Copy link

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.

@kisvegabor
Copy link
Member

Hi,

We have drivers for libinput and evdev. See here.

@septatrix
Copy link
Author

Would you accept a PR for adding them to this example or is that out of scope for this repo?

@kisvegabor
Copy link
Member

Would you accept a PR for adding them to this example

Sure!

The libinput driver got support for handling touch, mouse and keyboard too via

libinput_find_devs();
libinput_init_state();
libinput_read_state();

These updates were added by @Johennes, so there are any questions probably he can help. 🙂

@sukesh-ak
Copy link

@kisvegabor
Any reason why this sample repo is not updated with latest drivers which supports SDL including touch?

I have a RPI 3B with Waveshare 2.8" 480x640 TFT with capacitive touch.
Demo shows up on the display but now trying to get touch working.

What all changes are required to make it work?

By just switching drivers to master and copying drv_conf to local gives this error.
Trying to avoid spending time troubleshooting for now.

/usr/bin/ld: ./main.o: in function `main':
main.c:(.text.startup+0x10): undefined reference to `fbdev_init'
/usr/bin/ld: main.c:(.text.startup+0x40): undefined reference to `fbdev_flush'
/usr/bin/ld: main.c:(.text.startup+0x50): undefined reference to `fbdev_flush'
collect2: error: ld returned 1 exit status
make: *** [Makefile:38: default] Error 1

@kisvegabor
Copy link
Member

Just updated, see #20 (comment)

Basically, it's just the lack of manpower that we can't keep all the ports up to date. 🙁

@sukesh-ak
Copy link

@kisvegabor
I am trying to create samples with documentation which just works. Already did with WT32-SC01 + Arduino & ESP-IDF versions.

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 😊

@kisvegabor
Copy link
Member

Sounds great, thank you! 🙂

@stale
Copy link

stale bot commented Apr 16, 2022

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.

@stale stale bot added the stale label Apr 16, 2022
@septatrix
Copy link
Author

Still a relevant feature proposal

@stale stale bot removed the stale label Apr 16, 2022
@kisvegabor
Copy link
Member

Have you tried the libinput drivers mentioned here?

@stale
Copy link

stale bot commented Apr 20, 2023

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.

@stale stale bot added the stale label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants