vfs: check userland buffers before reading them.
[haiku.git] / src / servers / input / KeyboardSettings.h
blobe67548c2cfc2c9b84c2cbefca1c03e991de630da
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 */
11 #ifndef KEYBOARD_SETTINGS_H_
12 #define KEYBOARD_SETTINGS_H_
14 #include <SupportDefs.h>
15 #include <kb_mouse_settings.h>
17 class KeyboardSettings
19 public :
20 KeyboardSettings();
21 ~KeyboardSettings();
23 void SetKeyboardRepeatRate(int32 rate);
24 void SetKeyboardRepeatDelay(bigtime_t delay);
26 int32 KeyboardRepeatRate() const { return fSettings.key_repeat_rate; }
27 bigtime_t KeyboardRepeatDelay() const { return fSettings.key_repeat_delay; }
29 void Save();
31 private:
32 kb_settings fSettings;
35 #endif