littlekernel / lk

LK embedded kernel
MIT License
3.11k stars 613 forks source link

Touchscreen #337

Open luka177 opened 1 year ago

luka177 commented 1 year ago

As more and more embedded systems are getting bigger displays with touchscreens may be it is time to support them? Any plans on that? Or suggestions on touchscreen api design?

GreenLunar commented 1 year ago

This is critical, especially when a hardware button is not functioning.

travisg commented 1 year ago

This is interesting, unfortunately there's no real standard on touchscreens. What might be interesting is to build a generic infrastructure for a given driver to plug into such that generic code can get touchscreen events. There's a bit of a chicken and egg problem there, however. Without a driver or a device to test on there's little to work with, but then the driver would need the touchscreen infrastructure to work.

Usually what happens in these cases is some specific device comes along that someone wants to add support for, and then the drivers get written using some sort of semi generic interface, and then over time that becomes somewhat of a defacto interface and/or gets re-designed when the second driver comes along.