AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need more detailed "A_EventInfo" for WheelUp/Down

 
Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
dvda2k



Joined: 19 Apr 2007
Posts: 45

PostPosted: Fri Jan 08, 2010 1:55 pm    Post subject: Need more detailed "A_EventInfo" for WheelUp/Down Reply with quote

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.
Back to top
View user's profile Send private message
BoffinbraiN



Joined: 16 Nov 2009
Posts: 114

PostPosted: Thu Jan 14, 2010 10:17 pm    Post subject: Reply with quote

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. :)
Back to top
View user's profile Send private message Visit poster's website
dvda2k



Joined: 19 Apr 2007
Posts: 45

PostPosted: Sat Jan 16, 2010 3:12 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
BoffinbraiN



Joined: 16 Nov 2009
Posts: 114

PostPosted: Sat Jan 16, 2010 9:41 pm    Post subject: Reply with quote

Sure! That would be great.
Back to top
View user's profile Send private message Visit poster's website
dvda2k



Joined: 19 Apr 2007
Posts: 45

PostPosted: Wed Jan 20, 2010 9:03 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group