BTW I removed the post_data in the config file I submitted to CVS.
/* reversing the bits in the magnitude */
if(backwards_magnitude & 0x01) forward_magnitude |= 0x08;
if(backwards_magnitude & 0x02) forward_magnitude |= 0x04;
if(backwards_magnitude & 0x04) forward_magnitude |= 0x02;
if(backwards_magnitude & 0x08) forward_magnitude |= 0x01;
/* add in the sign bit, and sign extend */
/* 0x10 is where the sign bit belongs in the final value */
/* ~0x10 + 1 is the two's complement in order to sign extend it */
if(sign_bit) forward_magnitude |= ~0x10 + 1;
DataPath wrote:That's exactly what I got in my testing, right down to the puzzle bit.
There's a bit in the top byte that I call the "mouse bit", because it is on ONLY for mouse commands (including l. click and r. click), off for all other buttons.
I've got the mouse driver part written, I just need to test and debug it. I did test it once, got nothing, so I know there's debugging to do, I just don't know exactly what yet. I know that I intercept all mouse commands, while passing the others on through - lirc echos all button presses except for mouse ones. But the input system doesn't acknowledge the commands, and my printk statements aren't printing anything that I can find.
Users browsing this forum: No registered users and 1 guest