Now uses global header
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9045 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
SubDir OBOS_TOP src prefs keyboard ;
|
||||
|
||||
UsePrivateHeaders input ;
|
||||
|
||||
AddResources Keyboard : Keyboard.rdef ;
|
||||
|
||||
Preference Keyboard :
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include "KeyboardSettings.h"
|
||||
#include "KeyboardMessages.h"
|
||||
|
||||
const char KeyboardSettings::kKeyboardSettingsFile[] = "Keyboard_settings";
|
||||
|
||||
KeyboardSettings::KeyboardSettings()
|
||||
{
|
||||
@@ -30,7 +29,7 @@ KeyboardSettings::KeyboardSettings()
|
||||
BPath path;
|
||||
|
||||
if (find_directory(B_USER_SETTINGS_DIRECTORY,&path) == B_OK) {
|
||||
path.Append(kKeyboardSettingsFile);
|
||||
path.Append(kb_settings_file);
|
||||
BFile file(path.Path(), B_READ_ONLY);
|
||||
if (file.InitCheck() == B_OK) {
|
||||
// Now read in the data
|
||||
@@ -51,7 +50,7 @@ KeyboardSettings::~KeyboardSettings()
|
||||
if (find_directory(B_USER_SETTINGS_DIRECTORY,&path) < B_OK)
|
||||
return;
|
||||
|
||||
path.Append(kKeyboardSettingsFile);
|
||||
path.Append(kb_settings_file);
|
||||
|
||||
BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
||||
if (file.InitCheck() == B_OK) {
|
||||
|
||||
@@ -9,11 +9,7 @@
|
||||
#define KEYBOARD_SETTINGS_H_
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
typedef struct {
|
||||
bigtime_t key_repeat_delay;
|
||||
int32 key_repeat_rate;
|
||||
} kb_settings;
|
||||
#include "kb_mouse_settings.h"
|
||||
|
||||
class KeyboardSettings{
|
||||
public :
|
||||
|
||||
Reference in New Issue
Block a user