This is a daemon which allows you to emulate middle and right click as well as a mouse wheel. It was originally written for Apple PowerPC laptops with a single button, but can be used on any hardware.
13 lines
359 B
Diff
13 lines
359 B
Diff
Author: <agx@sigxcpu.org>
|
|
Description: Intialize all fields in uinput_user_dev, otherwise strange things
|
|
like dead keyboard, etc. might happen
|
|
--- a/mouseemu.c
|
|
+++ b/mouseemu.c
|
|
@@ -418,6 +418,7 @@
|
|
struct uinput_user_dev device;
|
|
int i;
|
|
|
|
+ memset(&device, 0, sizeof(struct uinput_user_dev));
|
|
/*setup keyboard device */
|
|
|
|
if(ui_keyb_fd > 0) {
|