git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9055 a95241bf-73f2-0310-859d-f6bbb57e9c96
32 lines
736 B
C++
32 lines
736 B
C++
/*
|
|
** Copyright 2004, the Haiku project. All rights reserved.
|
|
** Distributed under the terms of the Haiku License.
|
|
**
|
|
** Author : Jérôme Duval
|
|
** Original authors: [email protected]
|
|
*/
|
|
|
|
#ifndef KEYBOARD_SETTINGS_H_
|
|
#define KEYBOARD_SETTINGS_H_
|
|
|
|
#include <SupportDefs.h>
|
|
#include <kb_mouse_settings.h>
|
|
|
|
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
|