Now uses a global header
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9046 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
#include "KeyboardInputDevice.h"
|
#include "KeyboardInputDevice.h"
|
||||||
|
#include "kb_mouse_driver.h"
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
#include <NodeMonitor.h>
|
#include <NodeMonitor.h>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
#include <InputServerDevice.h>
|
#include <InputServerDevice.h>
|
||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "kb_mouse_driver.h"
|
#include "kb_mouse_settings.h"
|
||||||
|
|
||||||
class KeyboardInputDevice;
|
class KeyboardInputDevice;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
SubDir OBOS_TOP src add-ons input_server devices mouse ;
|
SubDir OBOS_TOP src add-ons input_server devices mouse ;
|
||||||
|
|
||||||
|
UsePrivateHeaders input ;
|
||||||
|
|
||||||
Addon <input>mouse : input_server/devices :
|
Addon <input>mouse : input_server/devices :
|
||||||
MouseInputDevice.cpp
|
MouseInputDevice.cpp
|
||||||
: false
|
: false
|
||||||
|
|||||||
@@ -31,23 +31,7 @@
|
|||||||
#include <InterfaceDefs.h>
|
#include <InterfaceDefs.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include "kb_mouse_settings.h"
|
||||||
// TODO : these structs are needed in : input_server, mouse driver, mouse addon, mouse prefs
|
|
||||||
// => factorisation has to be done in a global header, possibly private
|
|
||||||
|
|
||||||
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 BList;
|
class BList;
|
||||||
class MouseInputDevice : public BInputServerDevice {
|
class MouseInputDevice : public BInputServerDevice {
|
||||||
|
|||||||
Reference in New Issue
Block a user