AutoHotkey Community

It is currently May 27th, 2012, 1:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: January 8th, 2010, 2:55 pm 
Offline

Joined: April 19th, 2007, 8:05 am
Posts: 48
A_EventInfo for WheelUp/WheelDown is lack of WHEEL_DELTA information, and doesn't work on many Microsoft mice.

I have a Microsoft mouse which has a hi-resolution wheel. Instead of sending 120 WHEEL_DELTA units (as a typical mouse does) per detent, it sends 28 units to the system.

USB Mouse has a 125Hz pooling rate. That means it tells the system what happened in every 8ms. If you turn your wheel really fast, say twice in 8ms, the mouse will combine these two wheel messages into one with an accumulated WHEEL_DELTA. For a regular mouse, it's 120 + 120 = 240.

The current A_EventInfo is a modulo of 120. If WHEEL_DELTA is 120 units, A_EventInfo = 1; If it's 240, A_EventInfo = 2, and so on.

The problem with my hi-resolution wheel is, unless you turn it every fast, A_EventInfo is always 0. Because Mod (28, 120) = 0 .Therefore you can't tell how many detents you really turned.

So please make A_EventInfo more detailed. I suggest simply taking the value of WHEEL_DELTA.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 14th, 2010, 11:17 pm 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
Good suggestion. Normal wheels which 'tick' on each notch are good, but having wheels with higher DPI make the potential for accurate AND fast scrolling in applications even better.

I'm a bit of a scrollwheel freak too, as you can read here. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2010, 4:12 pm 
Offline

Joined: April 19th, 2007, 8:05 am
Posts: 48
BoffinbraiN, thanks for your reply and your wheel script is interesting and has some really good documentation.

I wrote a wheel acceleration script in a different approach of yours. This post is probably not the best place to discuss it. I can reply to your post or whatever ways you like.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2010, 10:41 pm 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
Sure! That would be great.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 20th, 2010, 10:03 am 
Offline

Joined: April 19th, 2007, 8:05 am
Posts: 48
I reconsidered my suggestion as taking WHEEL_DELTA value as A_EventInfo. It will cause backward compatible issue.

My new proposal is to introduce a "SetEventInfoMode, 1|2" directive. The default is mode 1, in most case A_EventInfo = 1, which is the current implementation. Mode 2 will use the WHEEL_DELTA value, in most case A_EventInfo = 120.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group