Re: How's this for an error

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

spent memory wrote:
> On Thu, 21 Oct 2004 13:41:35 -0700, Derek Parnell
> <guest at rapideuphoria.com> wrote:
> > 
> > posted by: Derek Parnell <ddparnell at bigpond.com>
> > 
> > 
> > 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
> > 
> > 
> ok thanks Derek, where can i get a copy of your win32lib with this new
> lWheelPosn? , is it on your website or are you planning on releasing
> it in v.60.7?

You have three choices:

(1) You wait til I release the next version (v0.61) in about a week.
(2) You use your favorite editor and make the change in fDoMouse().
(3) Goto (1)

 
-- 
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