Re: How's this for an error
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 21, 2004
- 535 views
spent memory wrote: > > D:\EUPHORIA\include\win32lib.ew:31228 in function fDoMouse() > type_check failure, lWheelPosn is -1.525 > > -- i get this message when i use the scroll wheel on my new Microsoft > Optical Cordless Mouse. I plug my old one in and the app works fine. > Perhaps Win32Lib should allow for a more generic object type for > lWheelPosn, the only thing i can think of is that the scroll on my new > mouse is more accurate in sending the scroll value message, or perhaps > this is due to the drivers??? any comments?? Weird, yes. The value given by Windows for the wheel position is supposed to be in multiples of 120. So I divide the raw value by 120 to give the simple value. But of course, I used an integer to hold the result. I've changed this now from lWheelPosn /= 120 to lWheelPosn = floor(lWheelPosn / 120) Hope this still gives an accurate reading -- Derek Parnell Melbourne, Australia