stripped out comments because their license is unknown

removed unused definitions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11726 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-03-14 10:32:10 +00:00
parent c320153fc6
commit f8f38c4c4b
2 changed files with 8 additions and 40 deletions
+5 -31
View File
@@ -1,8 +1,6 @@
// //
// kb_mouse_driver.h // kb_mouse_driver.h
// //
#ifndef _KB_MOUSE_DRIVER_H #ifndef _KB_MOUSE_DRIVER_H
#define _KB_MOUSE_DRIVER_H #define _KB_MOUSE_DRIVER_H
@@ -13,10 +11,6 @@
extern "C" { extern "C" {
#endif #endif
// Be key numbers for various cool keys
#define KEY_Scroll 0x0f #define KEY_Scroll 0x0f
#define KEY_Pause 0x10 #define KEY_Pause 0x10
#define KEY_Num 0x22 #define KEY_Num 0x22
@@ -42,9 +36,6 @@ extern "C" {
#define KB_DEFAULT_CONTROL_ALT_DEL_TIMEOUT 4000000 #define KB_DEFAULT_CONTROL_ALT_DEL_TIMEOUT 4000000
// ioctl codes
enum { enum {
KB_READ = B_DEVICE_OP_CODES_END, KB_READ = B_DEVICE_OP_CODES_END,
KB_GET_KEYBOARD_ID, KB_GET_KEYBOARD_ID,
@@ -56,7 +47,7 @@ enum {
KB_SET_KEY_REPEAT_DELAY, KB_SET_KEY_REPEAT_DELAY,
KB_GET_KEY_REPEAT_DELAY, KB_GET_KEY_REPEAT_DELAY,
KB_SET_CONTROL_ALT_DEL_TIMEOUT, KB_SET_CONTROL_ALT_DEL_TIMEOUT,
KB_RESERVED_1, // was KB_ACKNOWLEDGE_CONTROL_ALT_DEL, KB_RESERVED_1,
KB_CANCEL_CONTROL_ALT_DEL, KB_CANCEL_CONTROL_ALT_DEL,
KB_DELAY_CONTROL_ALT_DEL, KB_DELAY_CONTROL_ALT_DEL,
@@ -78,23 +69,20 @@ enum {
}; };
// structure passed to KB_READ typedef struct {
typedef struct { // USB, ADB keyboards
bigtime_t timestamp; bigtime_t timestamp;
uint32 be_keycode; uint32 be_keycode;
bool is_keydown; bool is_keydown;
} raw_key_info; } raw_key_info;
typedef struct { // AT keyboards
typedef struct {
bigtime_t timestamp; bigtime_t timestamp;
uint8 scancode; // high bit set for extended scancodes uint8 scancode;
bool is_keydown; bool is_keydown;
} at_kbd_io; } at_kbd_io;
// structure passed to KB_SET_LEDS
typedef struct { typedef struct {
bool num_lock; bool num_lock;
bool caps_lock; bool caps_lock;
@@ -102,8 +90,6 @@ typedef struct {
} led_info; } led_info;
#define mouse_settings_file "Mouse_settings"
typedef struct { typedef struct {
int32 cookie; int32 cookie;
uint32 buttons; uint32 buttons;
@@ -116,18 +102,6 @@ typedef struct {
int32 wheel_xdelta; int32 wheel_xdelta;
} mouse_movement; } mouse_movement;
// On the Mac, the I-squared C bus is controlled by the Cuda microcontroller,
// which also runs ADB. Since we have not yet partitioned the driver into
// a separate Cuda driver and a kb/mouse driver, the iic is controlled with
// control calls to the kb_mouse driver. Yuck.
typedef struct {
char device;
char reg;
char value;
} iic_write;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
+3 -9
View File
@@ -12,10 +12,6 @@
extern "C" { extern "C" {
#endif #endif
// keyboard settings info, as kept in settings file
typedef struct { typedef struct {
bigtime_t key_repeat_delay; bigtime_t key_repeat_delay;
int32 key_repeat_rate; int32 key_repeat_rate;
@@ -23,12 +19,10 @@ typedef struct {
#define kb_settings_file "Keyboard_settings" #define kb_settings_file "Keyboard_settings"
// mouse settings info
typedef struct { typedef struct {
bool enabled; // Acceleration on / off bool enabled;
int32 accel_factor; // accel factor: 256 = step by 1, 128 = step by 1/2 int32 accel_factor;
int32 speed; // speed accelerator (1=1X, 2 = 2x)... int32 speed;
} mouse_accel; } mouse_accel;
typedef struct { typedef struct {