Re: How's this for an error

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 blink

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu