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 ;
|
SubDir OBOS_TOP src prefs keyboard ;
|
||||||
|
|
||||||
|
UsePrivateHeaders input ;
|
||||||
|
|
||||||
AddResources Keyboard : Keyboard.rdef ;
|
AddResources Keyboard : Keyboard.rdef ;
|
||||||
|
|
||||||
Preference Keyboard :
|
Preference Keyboard :
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
#include "KeyboardSettings.h"
|
#include "KeyboardSettings.h"
|
||||||
#include "KeyboardMessages.h"
|
#include "KeyboardMessages.h"
|
||||||
|
|
||||||
const char KeyboardSettings::kKeyboardSettingsFile[] = "Keyboard_settings";
|
|
||||||
|
|
||||||
KeyboardSettings::KeyboardSettings()
|
KeyboardSettings::KeyboardSettings()
|
||||||
{
|
{
|
||||||
@@ -30,7 +29,7 @@ KeyboardSettings::KeyboardSettings()
|
|||||||
BPath path;
|
BPath path;
|
||||||
|
|
||||||
if (find_directory(B_USER_SETTINGS_DIRECTORY,&path) == B_OK) {
|
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);
|
BFile file(path.Path(), B_READ_ONLY);
|
||||||
if (file.InitCheck() == B_OK) {
|
if (file.InitCheck() == B_OK) {
|
||||||
// Now read in the data
|
// Now read in the data
|
||||||
@@ -51,7 +50,7 @@ KeyboardSettings::~KeyboardSettings()
|
|||||||
if (find_directory(B_USER_SETTINGS_DIRECTORY,&path) < B_OK)
|
if (find_directory(B_USER_SETTINGS_DIRECTORY,&path) < B_OK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
path.Append(kKeyboardSettingsFile);
|
path.Append(kb_settings_file);
|
||||||
|
|
||||||
BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
||||||
if (file.InitCheck() == B_OK) {
|
if (file.InitCheck() == B_OK) {
|
||||||
|
|||||||
@@ -9,11 +9,7 @@
|
|||||||
#define KEYBOARD_SETTINGS_H_
|
#define KEYBOARD_SETTINGS_H_
|
||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
|
#include "kb_mouse_settings.h"
|
||||||
typedef struct {
|
|
||||||
bigtime_t key_repeat_delay;
|
|
||||||
int32 key_repeat_rate;
|
|
||||||
} kb_settings;
|
|
||||||
|
|
||||||
class KeyboardSettings{
|
class KeyboardSettings{
|
||||||
public :
|
public :
|
||||||
|
|||||||
Reference in New Issue
Block a user