haiku/headers/private/input/kb_mouse_settings.h
Jérôme Duval 767560b14e Splitted kb_mouse_driver.h to avoid mixing driver and settings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 15:35:37 +00:00

48 lines
809 B
C

//
// kb_mouse_settings.h
//
#ifndef _KB_MOUSE_SETTINGS_H
#define _KB_MOUSE_SETTINGS_H
#include <SupportDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
// keyboard settings info, as kept in settings file
typedef struct {
bigtime_t key_repeat_delay;
int32 key_repeat_rate;
} kb_settings;
#define kb_settings_file "Keyboard_settings"
// mouse settings info
typedef struct {
bool enabled; // Acceleration on / off
int32 accel_factor; // accel factor: 256 = step by 1, 128 = step by 1/2
int32 speed; // speed accelerator (1=1X, 2 = 2x)...
} mouse_accel;
typedef struct {
int32 type;
mouse_map map;
mouse_accel accel;
bigtime_t click_speed;
} mouse_settings;
#define mouse_settings_file "Mouse_settings"
#ifdef __cplusplus
}
#endif
#endif