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
This commit is contained in:
parent
969eab3b53
commit
767560b14e
@ -77,17 +77,6 @@ enum {
|
||||
};
|
||||
|
||||
|
||||
// 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"
|
||||
|
||||
|
||||
// structure passed to KB_READ
|
||||
|
||||
typedef struct { // USB, ADB keyboards
|
||||
@ -112,34 +101,6 @@ typedef struct {
|
||||
} led_info;
|
||||
|
||||
|
||||
|
||||
// mouse settings info
|
||||
|
||||
typedef enum {
|
||||
MOUSE_1_BUTTON = 1,
|
||||
MOUSE_2_BUTTON,
|
||||
MOUSE_3_BUTTON
|
||||
} mouse_type;
|
||||
|
||||
typedef struct {
|
||||
int32 left;
|
||||
int32 right;
|
||||
int32 middle;
|
||||
} map_mouse;
|
||||
|
||||
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 {
|
||||
mouse_type type;
|
||||
map_mouse map;
|
||||
mouse_accel accel;
|
||||
bigtime_t click_speed;
|
||||
} mouse_settings;
|
||||
|
||||
#define mouse_settings_file "Mouse_settings"
|
||||
|
||||
typedef struct {
|
||||
|
47
headers/private/input/kb_mouse_settings.h
Normal file
47
headers/private/input/kb_mouse_settings.h
Normal file
@ -0,0 +1,47 @@
|
||||
//
|
||||
// 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
|
Loading…
Reference in New Issue
Block a user