Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/input/atp.c
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | |||||
static u_int atp_double_tap_threshold = ATP_DOUBLE_TAP_N_DRAG_THRESHOLD; | static u_int atp_double_tap_threshold = ATP_DOUBLE_TAP_N_DRAG_THRESHOLD; | ||||
SYSCTL_UINT(_hw_usb_atp, OID_AUTO, double_tap_threshold, CTLFLAG_RWTUN, | SYSCTL_UINT(_hw_usb_atp, OID_AUTO, double_tap_threshold, CTLFLAG_RWTUN, | ||||
&atp_double_tap_threshold, ATP_DOUBLE_TAP_N_DRAG_THRESHOLD, | &atp_double_tap_threshold, ATP_DOUBLE_TAP_N_DRAG_THRESHOLD, | ||||
"maximum time in microseconds to allow association between a double-tap and " | "maximum time in microseconds to allow association between a double-tap and " | ||||
"drag gesture"); | "drag gesture"); | ||||
static u_int atp_mickeys_scale_factor = ATP_SCALE_FACTOR; | static u_int atp_mickeys_scale_factor = ATP_SCALE_FACTOR; | ||||
static int atp_sysctl_scale_factor_handler(SYSCTL_HANDLER_ARGS); | static int atp_sysctl_scale_factor_handler(SYSCTL_HANDLER_ARGS); | ||||
SYSCTL_PROC(_hw_usb_atp, OID_AUTO, scale_factor, CTLTYPE_UINT | CTLFLAG_RWTUN, | SYSCTL_PROC(_hw_usb_atp, OID_AUTO, scale_factor, | ||||
CTLTYPE_UINT | CTLFLAG_RWTUN | CTLFLAG_NEEDGIANT,, | |||||
&atp_mickeys_scale_factor, sizeof(atp_mickeys_scale_factor), | &atp_mickeys_scale_factor, sizeof(atp_mickeys_scale_factor), | ||||
atp_sysctl_scale_factor_handler, "IU", "movement scale factor"); | atp_sysctl_scale_factor_handler, "IU", | ||||
"movement scale factor"); | |||||
static u_int atp_small_movement_threshold = ATP_SMALL_MOVEMENT_THRESHOLD; | static u_int atp_small_movement_threshold = ATP_SMALL_MOVEMENT_THRESHOLD; | ||||
SYSCTL_UINT(_hw_usb_atp, OID_AUTO, small_movement, CTLFLAG_RWTUN, | SYSCTL_UINT(_hw_usb_atp, OID_AUTO, small_movement, CTLFLAG_RWTUN, | ||||
&atp_small_movement_threshold, ATP_SMALL_MOVEMENT_THRESHOLD, | &atp_small_movement_threshold, ATP_SMALL_MOVEMENT_THRESHOLD, | ||||
"the small movement black-hole for filtering noise"); | "the small movement black-hole for filtering noise"); | ||||
static u_int atp_tap_minimum = 1; | static u_int atp_tap_minimum = 1; | ||||
SYSCTL_UINT(_hw_usb_atp, OID_AUTO, tap_minimum, CTLFLAG_RWTUN, | SYSCTL_UINT(_hw_usb_atp, OID_AUTO, tap_minimum, CTLFLAG_RWTUN, | ||||
▲ Show 20 Lines • Show All 2,427 Lines • Show Last 20 Lines |