xref: /haiku/headers/private/input/kb_mouse_settings.h (revision 85e84ddefb2aa36c93ee3a0c5545ba053f2d56bd)
1 /*
2  * Copyright 2001-2008, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _KB_MOUSE_SETTINGS_H
6 #define _KB_MOUSE_SETTINGS_H
7 
8 
9 #include <InterfaceDefs.h>
10 
11 
12 typedef struct {
13 	bigtime_t	key_repeat_delay;
14 	int32		key_repeat_rate;
15 } kb_settings;
16 
17 #define kb_default_key_repeat_delay 500000
18 #define kb_default_key_repeat_rate	250
19 
20 #define kb_settings_file "Keyboard_settings"
21 
22 typedef struct {
23 	bool		enabled;
24 	int32		accel_factor;
25 	int32		speed;
26 } mouse_accel;
27 
28 typedef struct {
29 	int32		type;
30 	mouse_map	map;
31 	mouse_accel	accel;
32 	bigtime_t	click_speed;
33 } mouse_settings;
34 
35 static const bigtime_t kDefaultClickSpeed = 500000;
36 static const int32 kDefaultMouseSpeed = 65536;
37 static const int32 kDefaultMouseType = 3;	// 3 button mouse
38 static const int32 kDefaultAccelerationFactor = 65536;
39 static const bool kDefaultAcceptFirstClick = true;
40 
41 #define mouse_settings_file "Mouse_settings"
42 
43 #endif	/* _KB_MOUSE_SETTINGS_H */
44