Pass force on touch events on android
This commit is contained in:
parent
878d832d24
commit
2422ea39d0
3 changed files with 7 additions and 3 deletions
|
|
@ -939,7 +939,10 @@ pub struct Touch {
|
|||
///
|
||||
/// ## Platform-specific
|
||||
///
|
||||
/// - Only available on **iOS** 9.0+, **Windows** 8+, and **Web**.
|
||||
/// - Only available on **iOS** 9.0+, **Windows** 8+, **Web**, and **Android**.
|
||||
/// - **Android**: This will never be [None]. If the device doesn't support pressure
|
||||
/// sensitivity, force will either be 0.0 or 1.0. Also see the
|
||||
/// [android documentation](https://developer.android.com/reference/android/view/MotionEvent#AXIS_PRESSURE).
|
||||
pub force: Option<Force>,
|
||||
/// Unique identifier of a finger.
|
||||
pub id: u64,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue