2004-08-29 19:20:34 +04:00
|
|
|
/*
|
|
|
|
** Copyright 2004, the Haiku project. All rights reserved.
|
|
|
|
** Distributed under the terms of the Haiku License.
|
|
|
|
**
|
|
|
|
** Author : Jérôme Duval
|
|
|
|
** Original authors: mccall@digitalparadise.co.uk
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KEYBOARD_SETTINGS_H_
|
|
|
|
#define KEYBOARD_SETTINGS_H_
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
2004-09-24 16:41:10 +04:00
|
|
|
#include <kb_mouse_settings.h>
|
2004-08-29 19:20:34 +04:00
|
|
|
|
|
|
|
class KeyboardSettings {
|
|
|
|
public :
|
|
|
|
KeyboardSettings();
|
|
|
|
~KeyboardSettings();
|
|
|
|
|
|
|
|
int32 KeyboardRepeatRate() const { return fSettings.key_repeat_rate; }
|
|
|
|
void SetKeyboardRepeatRate(int32 rate);
|
|
|
|
int32 KeyboardRepeatDelay() const { return fSettings.key_repeat_delay; }
|
|
|
|
void SetKeyboardRepeatDelay(int32 rate);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static const char kKeyboardSettingsFile[];
|
|
|
|
BPoint fCorner;
|
|
|
|
kb_settings fSettings;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|