fbe9b0b6eb
Input server now saves keyboard typematic settings whenever they are modified, instead of wating until it is shutdown (which never happens, either the system will crash, or the input_server will stay active after a normal shut down) Same problems might apply to mouse and keymap settings. Input server shutdown handling should be reviewed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16380 a95241bf-73f2-0310-859d-f6bbb57e9c96
38 lines
696 B
C
38 lines
696 B
C
/*
|
|
* Copyright 2001-2005, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KB_MOUSE_SETTINGS_H
|
|
#define _KB_MOUSE_SETTINGS_H
|
|
|
|
|
|
#include <InterfaceDefs.h>
|
|
|
|
|
|
typedef struct {
|
|
bigtime_t key_repeat_delay;
|
|
int32 key_repeat_rate;
|
|
} kb_settings;
|
|
|
|
#define kb_default_key_repeat_delay 500000
|
|
#define kb_default_key_repeat_rate 200
|
|
|
|
#define kb_settings_file "Keyboard_settings"
|
|
|
|
typedef struct {
|
|
bool enabled;
|
|
int32 accel_factor;
|
|
int32 speed;
|
|
} mouse_accel;
|
|
|
|
typedef struct {
|
|
int32 type;
|
|
mouse_map map;
|
|
mouse_accel accel;
|
|
bigtime_t click_speed;
|
|
} mouse_settings;
|
|
|
|
#define mouse_settings_file "Mouse_settings"
|
|
|
|
#endif /* _KB_MOUSE_SETTINGS_H */
|