xref: /haiku/headers/private/input/kb_mouse_settings.h (revision 1e36cfc2721ef13a187c6f7354dc9cbc485e89d3)
1 /*
2  * Copyright 2001-2005, 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	200
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 #define mouse_settings_file "Mouse_settings"
36 
37 #endif	/* _KB_MOUSE_SETTINGS_H */
38