2007-01-11 01:28:54

by Ortwin Glück

[permalink] [raw]
Subject: [Bluez-devel] Mighty Mouse again

Okay, ignore my former emails. I figured out that the mouse data is
parsed by net/bluetooth/hidp/core.c. A patch seems straight forward. I
have verified that the code is executed. But I still don't see the
events in xev. Any hints to a poor kernel newbie?

Cheers

Ortwin

--- core.c.orig 2007-01-11 01:31:29.000000000 +0100
+++ core.c 2007-01-11 02:16:05.000000000 +0100
@@ -212,6 +212,8 @@

if (size > 3)
input_report_rel(dev, REL_WHEEL, sdata[3]);
+ if (size > 4)
+ input_report_rel(dev, REL_HWHEEL, sdata[4]);
break;
}

@@ -563,7 +565,7 @@
input->keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) |
BIT(BTN_RIGHT) | BIT(BTN_MIDDLE);
input->relbit[0] = BIT(REL_X) | BIT(REL_Y);
input->keybit[LONG(BTN_MOUSE)] |= BIT(BTN_SIDE) |
BIT(BTN_EXTRA);
- input->relbit[0] |= BIT(REL_WHEEL);
+ input->relbit[0] |= BIT(REL_WHEEL) | BIT(REL_HWHEEL);
}

input->event = hidp_input_event;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel