2005-11-16 20:25:58 +03:00
|
|
|
/*
|
2008-02-22 13:53:27 +03:00
|
|
|
* Copyright 2001-2008, Haiku, Inc. All Rights Reserved.
|
2005-11-16 20:25:58 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2004-09-23 19:35:37 +04:00
|
|
|
#ifndef _KB_MOUSE_SETTINGS_H
|
|
|
|
#define _KB_MOUSE_SETTINGS_H
|
|
|
|
|
|
|
|
|
2005-11-16 20:25:58 +03:00
|
|
|
#include <InterfaceDefs.h>
|
|
|
|
|
2004-09-23 19:35:37 +04:00
|
|
|
|
|
|
|
typedef struct {
|
2005-11-16 20:25:58 +03:00
|
|
|
bigtime_t key_repeat_delay;
|
|
|
|
int32 key_repeat_rate;
|
2004-09-23 19:35:37 +04:00
|
|
|
} kb_settings;
|
|
|
|
|
2006-02-13 20:35:05 +03:00
|
|
|
#define kb_default_key_repeat_delay 500000
|
2008-02-22 13:53:27 +03:00
|
|
|
#define kb_default_key_repeat_rate 250
|
2006-02-13 20:35:05 +03:00
|
|
|
|
2004-09-23 19:35:37 +04:00
|
|
|
#define kb_settings_file "Keyboard_settings"
|
|
|
|
|
|
|
|
typedef struct {
|
2005-11-16 20:25:58 +03:00
|
|
|
bool enabled;
|
|
|
|
int32 accel_factor;
|
|
|
|
int32 speed;
|
2004-09-23 19:35:37 +04:00
|
|
|
} mouse_accel;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int32 type;
|
|
|
|
mouse_map map;
|
2005-11-16 20:25:58 +03:00
|
|
|
mouse_accel accel;
|
|
|
|
bigtime_t click_speed;
|
2004-09-23 19:35:37 +04:00
|
|
|
} mouse_settings;
|
|
|
|
|
|
|
|
#define mouse_settings_file "Mouse_settings"
|
|
|
|
|
2005-11-16 20:25:58 +03:00
|
|
|
#endif /* _KB_MOUSE_SETTINGS_H */
|