You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 9, 2024. It is now read-only.
Widget that responds to pointer entering child's widget region.
It also allows changing cursor icon (e.g. to a pointer icon when hovering over a button).
As of now, I am working on implementing PointerListener and KeyboardListener (other issue).
GestureDetector is a little bit tricky to implement and not that useful on PC, so I plan to implement it later when we will focus on supporting mobile devices. For now, PointerListener and PointerRegion should be enough for handling input on PC.
The text was updated successfully, but these errors were encountered:
Frui needs an easy way to handle pointer events.
In this issue I wanted to document the overall API I am planning.
✅ Pointer Listener
Widget that responds to low-level pointer events.
✅ Pointer Region
Widget that responds to pointer entering child's widget region.
It also allows changing cursor icon (e.g. to a pointer icon when hovering over a button).
Gesture Detector
Widget that distinguishes between different high-level gestures.
I was thinking about adding an ability to directly extend that widget with custom gestures:
Above builder method could then be abstracted using extension trait and used like:
As of now, I am working on implementing
PointerListener
andKeyboardListener
(other issue).GestureDetector
is a little bit tricky to implement and not that useful on PC, so I plan to implement it later when we will focus on supporting mobile devices. For now,PointerListener
andPointerRegion
should be enough for handling input on PC.The text was updated successfully, but these errors were encountered: