1/* 2** Copyright 2004-2006, the Haiku project. All rights reserved. 3** Distributed under the terms of the MIT 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 17class KeyboardSettings 18{ 19public : 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 31private: 32 kb_settings fSettings; 33}; 34 35#endif 36