xref: /haiku/headers/private/input/touchpad_settings.h (revision 13b45a2ea30c69f86ec914d82fa88680ac380c06)
1 /*
2  * Copyright 2001-2009, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef TOUCHPAD_SETTINGS_H
6 #define TOUCHPAD_SETTINGS_H
7 
8 #include <SupportDefs.h>
9 
10 
11 typedef struct {
12 	bool	scroll_twofinger;
13 	bool	scroll_twofinger_horizontal;
14 	float	scroll_rightrange;		// from 0 to 1
15 	float	scroll_bottomrange;		// from 0 to 1
16 	uint16	scroll_xstepsize;
17 	uint16	scroll_ystepsize;
18 	uint8	scroll_acceleration;	// from 0 to 20
19 
20 	uint8	tapgesture_sensibility;	// 0 : no tapgesture
21 									// 20: very light tip is enough (default)
22 	uint16  padblocker_threshold;	//0 to 100
23 } touchpad_settings;
24 
25 
26 const static touchpad_settings kDefaultTouchpadSettings = {
27 	true,
28 	true,
29 	0.15,
30 	0.15,
31 	7,
32 	10,
33 	10,
34 	20,
35 	30
36 };
37 
38 #define TOUCHPAD_SETTINGS_FILE "Touchpad_settings"
39 
40 #endif	/* TOUCHPAD_SETTINGS_H */
41