WhatPulse Forums
Mouse/touchpad scrolling also counted as clicks? - Printable Version

+- WhatPulse Forums (http://whatpulse.org/forums)
+-- Forum: Community (/forumdisplay.php?fid=34)
+--- Forum: Beta client (/forumdisplay.php?fid=74)
+---- Forum: Archive (/forumdisplay.php?fid=80)
+---- Thread: Mouse/touchpad scrolling also counted as clicks? (/showthread.php?tid=1928)



Mouse/touchpad scrolling also counted as clicks? - maew - 11-26-2012 02:55 PM

Just wondering after saw number of clicks increases quickly when browsing web but I rarely click anything.

My whatpulse is 2.0b7 Linux 64bits.

By the way, great job on the new version Smile


Mouse/touchpad scrolling also counted as clicks? - Century0 - 11-26-2012 03:48 PM

That's an odd glitch. Could you please give us some more information regarding the computer that you're using as well as any details you can give us about your touchpad?

Also, can you reproduce this consistently to be able to give us a definitive answer of when it happens?

~Century0


Mouse/touchpad scrolling also counted as clicks? - maew - 11-26-2012 05:02 PM

Sure. My laptop is Lenovo Thinkpad X220 running Ubuntu 11.10 with GNOME Desktop. I can reproduce this issue on both Gnome and Unity, before and after the machine is rebooted. Not sure what did you mean about the detail of touchpad though, if there are any script to collect the information would be great.

One thing that I notice is that scroll up generates button 4 events and scroll down generates button 5 events that I think the program might interprets these events as mouse clicking.

Here is a output from xev that I test scrolling the mouse:
...
ButtonPress event, serial 37, synthetic NO, window 0x4800001,
root 0xc7, subw 0x0, time 19461370, (89,108), root:(90,191),
state 0x0, button 4, same_screen YES

ButtonRelease event, serial 37, synthetic NO, window 0x4800001,
root 0xc7, subw 0x0, time 19461370, (89,108), root:(90,191),
state 0x800, button 4, same_screen YES
...
ButtonPress event, serial 37, synthetic NO, window 0x4800001,
root 0xc7, subw 0x0, time 19462040, (89,108), root:(90,191),
state 0x0, button 5, same_screen YES

ButtonRelease event, serial 37, synthetic NO, window 0x4800001,
root 0xc7, subw 0x0, time 19462040, (89,108), root:(90,191),
state 0x1000, button 5, same_screen YES


Mouse/touchpad scrolling also counted as clicks? - FamilienVater - 11-26-2012 06:56 PM

Now that you mentioned it, I can confirm that with my machine, too.

It's an 6 year old Dell Inspiron 9400 (17"), "cat /proc/bus/input/devices" lists this as the touchpad:

Code:
I: Bus=0011 Vendor=0002 Product=0007 Version=0fb1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input5
U: Uniq=
H: Handlers=mouse0 event5
B: PROP=1
B: EV=b
B: KEY=6420 30000 0 0 0 0
B: ABS=11000003



Mouse/touchpad scrolling also counted as clicks? - smitmartijn - 11-26-2012 07:10 PM

Ok, that makes up my mind about reverting to the 1.* way of counting on Linux. ;-)

2.0 currently uses X11 hooks for the input, which obviously is inaccurate and can probably be simulated.


Mouse/touchpad scrolling also counted as clicks? - FamilienVater - 11-26-2012 07:49 PM

hehe, I'm sure everything can be simulated somehow -- espacially with hardware that's designed for that - but the harder it is, the better it is...
On question though, will you capture also the keys like in 1.x? Because I'm still having the funny problem that some keys aren't counted.... like e.g. "Page Up" and "Page Down" which I happen to use a lot... (Code-Reviews, Error-/Application-Logs Wink )


Mouse/touchpad scrolling also counted as clicks? - maew - 11-27-2012 09:33 AM

The PgUp PgDn keys aren't counted is not happen in my computer. But the keys/clicks count not increasing instantly. It took about 3-4 seconds after pressed/clicked or sometimes wait until the next few key presses/clicks to increase the right number.


Mouse/touchpad scrolling also counted as clicks? - smitmartijn - 11-27-2012 09:27 PM

FamilienVater: The input hook is used for both keys and clicks.

nopparat: The GUI doesn't update realtime, it uses timed updates.


Mouse/touchpad scrolling also counted as clicks? - FamilienVater - 11-27-2012 09:39 PM

woohooo Smile that might solve at least a few of my "problems" - on the other hand, it won't solve the "page up/down" problem on windows for sure...

@nopparat: pressing "page up" 100 times and then three times "a" + wait for update increases the counter only by 3 so it's not an issue with the timed updates. Maybe it's because I have a german keyboard and the driver reports it as "bild auf"... :/