1// Copyright 2022 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
45pub(super) const SPURIOUS_TO_INTENTIONAL_MOTION_THRESHOLD_MM: f32 = 6.0 / 12.0;
6pub(super) const MAX_SPURIOUS_TO_INTENTIONAL_SCROLL_THRESHOLD_MM: f32 =
75.0 * SPURIOUS_TO_INTENTIONAL_MOTION_THRESHOLD_MM;
8pub(super) const TAP_TIMEOUT: zx::MonotonicDuration = zx::MonotonicDuration::from_millis(1200);
9pub(super) const MAX_SCROLL_DIRECTION_SKEW_DEGREES: f32 = 40.0;
1011/// Based on palm / thumb size data collected from adults.
12///
13/// Mean of the max of contact size of thumb sequence is 4.878mm,
14/// std of the max of contact size of thumb is 0.4836.
15/// So we believe 5.8mm maybe a threshold of thumb to palm.
16pub(super) const MIN_PALM_SIZE_MM: f32 = 5.8;
1718pub(super) const SPURIOUS_TO_INTENTIONAL_MOTION_THRESHOLD_BUTTON_CHANGE_MM: f32 =
193.0 * SPURIOUS_TO_INTENTIONAL_MOTION_THRESHOLD_MM;
20pub(super) const BUTTON_CHANGE_STATE_TIMEOUT: zx::MonotonicDuration =
21 zx::MonotonicDuration::from_millis(100);