Jump to content
The simFlight Network Forums

problem with the mouse.wheel function


Recommended Posts

Hi Pete,
I do not understand the function mouse.wheel. In my LUA scripts is:

elseif ipcPARAM == 96
mouse.wheel (-1)

elseif ipcPARAM == 97
mouse.wheel (1)

If I use this in the zoom function, then the factor jumps at one click to 0.30 and in the other direction to 2.45 without intermediate stages. In the COM frequency change from 118.xxx to 136.xxx also without intermediate stages. What am I doing wrong?

 

Ralf

Link to comment
Share on other sites

I do not understand the function mouse.wheel. In my LUA scripts is:

elseif ipcPARAM == 96

mouse.wheel (-1)

elseif ipcPARAM == 97

mouse.wheel (1)

If I use this in the zoom function, then the factor jumps at one click to 0.30 and in the other direction to 2.45 without intermediate stages. In the COM frequency change from 118.xxx to 136.xxx also without intermediate stages. What am I doing wrong?

 

Ralf

 

I think I spot an error in FSUIPC whereby it is sending 120 times the value you provide. Very odd that it seemed to work fine in testing. I will release a correction -- 4.937a. Tomorrow.

 

BTW you ARE using FSUIPC4, aren't you? FSUIPC3 is no longer easy to maintain.

 

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.