All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Mighty Mouse again
@ 2007-01-11  1:28 Ortwin Glück
  0 siblings, 0 replies; only message in thread
From: Ortwin Glück @ 2007-01-11  1:28 UTC (permalink / raw)
  To: bluez-devel

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-11  1:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-11  1:28 [Bluez-devel] Mighty Mouse again Ortwin Glück

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.