1 /* 2 ** Copyright 2004-2006, the Haiku project. All rights reserved. 3 ** Distributed under the terms of the Haiku License. 4 ** 5 ** Authors in chronological order: 6 ** mccall@digitalparadise.co.uk 7 ** Jérôme Duval 8 ** Marcus Overhagen 9 */ 10 11 #ifndef KEYBOARD_SETTINGS_H_ 12 #define KEYBOARD_SETTINGS_H_ 13 14 #include <SupportDefs.h> 15 #include <kb_mouse_settings.h> 16 17 class KeyboardSettings 18 { 19 public : 20 KeyboardSettings(); 21 ~KeyboardSettings(); 22 23 void SetKeyboardRepeatRate(int32 rate); 24 void SetKeyboardRepeatDelay(bigtime_t delay); 25 26 int32 KeyboardRepeatRate() const { return fSettings.key_repeat_rate; } 27 bigtime_t KeyboardRepeatDelay() const { return fSettings.key_repeat_delay; } 28 29 void Save(); 30 31 private: 32 kb_settings fSettings; 33 }; 34 35 #endif 36