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

Update lvgui for better pointer support #88

Merged
merged 2 commits into from Mar 8, 2020

Conversation

samueldr
Copy link
Member

@samueldr samueldr commented Mar 5, 2020

This adds the necessary support to better handle other pointing-type
inputs.

  • Cursor for non-touch devices
  • Handle abs min/max
  • Handle touchpads

With this, a tablet-type input, like used by QEMU, now works.

This is important for non-touch uses. It seems antithetical to "Mobile" NixOS, but it's not. The whole boot chain should be dogfood-able on any device NixOS runs. Not all of them have touchscreens.

Though, with that said, an improvement could be made with the cursor. The main one would be to use a circle "touch zone" cursor. The way LVGL handles cursors it's not possible, as it assumes [0, 0] on the object given as a cursor is the pointy bit of the pointer. A non LVGL-native handling of the cursor will be needed. This would, in turn, gives us the benefit of being able to guesstimate touch inputs from non-touch, and hide the cursor like unclutter does, hiding quicker when we're sure it's a touch.

With the new way I handle touchpads/mice, we can drop that requirement, at least for now. Touch-only devices will not see a cursor, and if you have touch+mice the cursor will not jump on touch.

@samueldr samueldr added the 4. type: enhancement New feature or request label Mar 8, 2020
Otherwise, there is no trivial way to dinstinguish a trackpad from a
touchscreen.
This adds the necessary support to better handle other pointing-type
inputs.

 * Cursor for non-touch devices
 * Handle abs min/max
 * Handle touchpads

With this, a tablet-type input, like used by QEMU, now works.
@samueldr samueldr force-pushed the feature/boot-gui/inputs-fixes branch from d409013 to 022f3dc Compare March 8, 2020 21:01
@samueldr samueldr merged commit f7f4920 into NixOS:master Mar 8, 2020
@samueldr samueldr deleted the feature/boot-gui/inputs-fixes branch March 8, 2020 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant