Now use a global header
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9044 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
SubDir OBOS_TOP src prefs mouse ;
|
SubDir OBOS_TOP src prefs mouse ;
|
||||||
|
|
||||||
|
UsePrivateHeaders input ;
|
||||||
|
|
||||||
AddResources Mouse : Mouse.rdef ;
|
AddResources Mouse : Mouse.rdef ;
|
||||||
|
|
||||||
Preference Mouse :
|
Preference Mouse :
|
||||||
|
|||||||
@@ -29,8 +29,6 @@
|
|||||||
// the latter maps 16 different mouse buttons
|
// the latter maps 16 different mouse buttons
|
||||||
#define R5_COMPATIBLE 1
|
#define R5_COMPATIBLE 1
|
||||||
|
|
||||||
static const char kMouseSettingsFile[] = "Mouse_settings";
|
|
||||||
|
|
||||||
static const bigtime_t kDefaultClickSpeed = 500000;
|
static const bigtime_t kDefaultClickSpeed = 500000;
|
||||||
static const int32 kDefaultMouseSpeed = 65536;
|
static const int32 kDefaultMouseSpeed = 65536;
|
||||||
static const int32 kDefaultMouseType = 3; // 3 button mouse
|
static const int32 kDefaultMouseType = 3; // 3 button mouse
|
||||||
@@ -61,7 +59,7 @@ MouseSettings::GetSettingsPath(BPath &path)
|
|||||||
if (status < B_OK)
|
if (status < B_OK)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
path.Append(kMouseSettingsFile);
|
path.Append(mouse_settings_file);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,23 +20,7 @@
|
|||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
#include <InterfaceDefs.h>
|
#include <InterfaceDefs.h>
|
||||||
|
#include "kb_mouse_settings.h"
|
||||||
|
|
||||||
// ToDo: these should be defined somewhere else; the mouse
|
|
||||||
// input driver or add-on must read them as well
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
bool enabled; // Acceleration on / off
|
|
||||||
int32 accel_factor; // accel factor: 256 = step by 1, 128 = step by 1/2
|
|
||||||
int32 speed; // speed accelerator (1=1X, 2 = 2x)...
|
|
||||||
} mouse_accel;
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
int32 type;
|
|
||||||
mouse_map map;
|
|
||||||
mouse_accel accel;
|
|
||||||
bigtime_t click_speed;
|
|
||||||
} mouse_settings;
|
|
||||||
|
|
||||||
|
|
||||||
class MouseSettings {
|
class MouseSettings {
|
||||||
|
|||||||
Reference in New Issue
Block a user