#include <linux/device.h>
#include <linux/hid.h>
#include <linux/input/mt.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include "hid-ids.h"
Go to the source code of this file.
|
| module_param (emulate_3button, bool, 0644) |
|
| MODULE_PARM_DESC (emulate_3button,"Emulate a middle button") |
|
| module_param (emulate_scroll_wheel, bool, 0644) |
|
| MODULE_PARM_DESC (emulate_scroll_wheel,"Emulate a scroll wheel") |
|
| module_param_call (scroll_speed, param_set_scroll_speed, param_get_uint,&scroll_speed, 0644) |
|
| MODULE_PARM_DESC (scroll_speed,"Scroll speed, value from 0 (slow) to 63 (fast)") |
|
| module_param (scroll_acceleration, bool, 0644) |
|
| MODULE_PARM_DESC (scroll_acceleration,"Accelerate sequential scroll events") |
|
| module_param (report_undeciphered, bool, 0644) |
|
| MODULE_PARM_DESC (report_undeciphered,"Report undeciphered multi-touch state field using a MSC_RAW event") |
|
| MODULE_DEVICE_TABLE (hid, magic_mice) |
|
| module_init (magicmouse_init) |
|
| module_exit (magicmouse_exit) |
|
| MODULE_LICENSE ("GPL") |
|
#define DOUBLE_REPORT_ID 0xf7 |
#define MOUSE_DIMENSION_X (float)9056 |
#define MOUSE_DIMENSION_Y (float)5152 |
#define MOUSE_MIN_X -1100 |
#define MOUSE_MIN_Y -1589 |
#define MOUSE_REPORT_ID 0x29 |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define SCROLL_ACCEL_DEFAULT 7 |
#define TOUCH_STATE_DRAG 0x40 |
#define TOUCH_STATE_MASK 0xf0 |
#define TOUCH_STATE_NONE 0x00 |
#define TOUCH_STATE_START 0x30 |
#define TRACKPAD_DIMENSION_X (float)13000 |
#define TRACKPAD_DIMENSION_Y (float)11000 |
#define TRACKPAD_MAX_X 3167 |
#define TRACKPAD_MAX_Y 2565 |
#define TRACKPAD_MIN_X -2909 |
#define TRACKPAD_MIN_Y -2456 |
#define TRACKPAD_REPORT_ID 0x28 |
MODULE_DEVICE_TABLE |
( |
hid |
, |
|
|
magic_mice |
|
|
) |
| |
module_exit |
( |
magicmouse_exit |
| ) |
|
module_init |
( |
magicmouse_init |
| ) |
|
module_param |
( |
emulate_3button |
, |
|
|
bool |
, |
|
|
0644 |
|
|
) |
| |
module_param |
( |
emulate_scroll_wheel |
, |
|
|
bool |
, |
|
|
0644 |
|
|
) |
| |
module_param |
( |
scroll_acceleration |
, |
|
|
bool |
, |
|
|
0644 |
|
|
) |
| |
module_param |
( |
report_undeciphered |
, |
|
|
bool |
, |
|
|
0644 |
|
|
) |
| |
module_param_call |
( |
scroll_speed |
, |
|
|
param_set_scroll_speed |
, |
|
|
param_get_uint |
, |
|
|
& |
scroll_speed, |
|
|
0644 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
emulate_3button |
, |
|
|
"Emulate a middle button" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
emulate_scroll_wheel |
, |
|
|
"Emulate a scroll wheel" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
scroll_speed |
, |
|
|
"Scroll |
speed, |
|
|
value from 0(slow) to 63(fast)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
scroll_acceleration |
, |
|
|
"Accelerate sequential scroll events" |
|
|
) |
| |