Skip to content

[NUI] Add per-device gesture options and recognition thresholds - #7844

Merged
JoogabYun merged 1 commit into
Samsung:DevelNUIfrom
JoogabYun:gesture_device_0914
Sep 16, 2026
Merged

JoogabYun merged 1 commit into
Samsung:DevelNUIfrom
JoogabYun:gesture_device_0914

Conversation

@JoogabYun

@JoogabYun JoogabYun commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Description of Change

Add GestureDeviceSelector (matches an exact device name, a device class and subclass, or a device class), nested Options types for Pan/Tap/LongPress gesture detectors with GetDefaultOptions, SetDeviceOptions, TryGetDeviceOptions and ClearDeviceOptions, Gesture.DeviceName, and per-device recognition thresholds (PanThresholds, TapThresholds, LongPressThresholds, PinchThresholds, RotationThresholds) exposed through GestureOptions.Instance.

Also expose TapGestureDetector.ReceiveAllTapEvents / IsReceiveAllTapEventsEnabled.

Adds a DeviceGestureOptionsSample demonstrating the feature: a PanGestureDetector and a TapGestureDetector recognize gestures differently for mouse vs. touch, using detector-local Options (mouse pans restricted to roughly horizontal drags, both allow a double tap) and GestureOptions.Instance per-device thresholds (mouse needs a longer drag before a pan starts and a faster second tap for a double tap than the touch defaults). A touchscreen is not required to see the effect.

https://review.tizen.org/gerrit/c/platform/core/uifw/dali-core/+/354159
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-csharp-binder/+/354160

API Changes

  • ACR:

Add GestureDeviceSelector (matches an exact device name, a device
class and subclass, or a device class), nested Options types for
Pan/Tap/LongPress gesture detectors with GetDefaultOptions,
SetDeviceOptions, TryGetDeviceOptions and ClearDeviceOptions,
Gesture.DeviceName, and per-device recognition thresholds
(PanThresholds, TapThresholds, LongPressThresholds, PinchThresholds,
RotationThresholds) exposed through GestureOptions.Instance.

Also expose TapGestureDetector.ReceiveAllTapEvents /
IsReceiveAllTapEventsEnabled.

All new members are [EditorBrowsable(EditorBrowsableState.Never)]
until ACR.

Adds a DeviceGestureOptionsSample demonstrating the feature: a
PanGestureDetector and a TapGestureDetector recognize gestures
differently for mouse vs. touch, using detector-local Options
(mouse pans restricted to roughly horizontal drags, both allow a
double tap) and GestureOptions.Instance per-device thresholds (mouse
needs a longer drag before a pan starts and a faster second tap for
a double tap than the touch defaults). A touchscreen is not required
to see the effect.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@TizenAPI-Bot

Copy link
Copy Markdown
Collaborator

Internal API Changed

Added: 104, Removed: 0, Changed: 0

@dongsug-song dongsug-song left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@JoogabYun
JoogabYun merged commit 6bbe0fe into Samsung:DevelNUI Sep 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants