1 // 2 // kb_mouse_settings.h 3 // 4 5 6 #ifndef _KB_MOUSE_SETTINGS_H 7 #define _KB_MOUSE_SETTINGS_H 8 9 #include <SupportDefs.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 16 // keyboard settings info, as kept in settings file 17 18 19 typedef struct { 20 bigtime_t key_repeat_delay; 21 int32 key_repeat_rate; 22 } kb_settings; 23 24 #define kb_settings_file "Keyboard_settings" 25 26 // mouse settings info 27 28 typedef struct { 29 bool enabled; // Acceleration on / off 30 int32 accel_factor; // accel factor: 256 = step by 1, 128 = step by 1/2 31 int32 speed; // speed accelerator (1=1X, 2 = 2x)... 32 } mouse_accel; 33 34 typedef struct { 35 int32 type; 36 mouse_map map; 37 mouse_accel accel; 38 bigtime_t click_speed; 39 } mouse_settings; 40 41 #define mouse_settings_file "Mouse_settings" 42 43 #ifdef __cplusplus 44 } 45 #endif 46 47 #endif 48