Jump to content

TARGET/Programming issues with Mousewheel


Recommended Posts

[VAF]HomeFries
Posted

I'm currently building a Tank Crew profile to complement my IL-2 GB integrated profile, yet I've run into a catch with the mousewheel.  I've used up all the analog axes for the different engine and mixture/RPM configurations, which leaves the mousewheel with modifiers for the gunsight adjustment.

 

Here's the problem:  I can get the mousewheel command to work in IL-2, but it only moves a single increment and does not repeat.  I can get a repeating scroll command within windows (e.g. if I have a document up I can scroll using my HOTAS), but the same command works only once in IL-2.

 

Here's my sample code:

MapKey(&Joystick, H1U,	AXIS(MOUSE_Z_AXIS,  1, 50)	);
MapKey(&Joystick, H1D,	AXIS(MOUSE_Z_AXIS, -1, 50)	);
MapKeyR(&Joystick,H1D,0);
MapKeyR(&Joystick,H1U,0);

Where 1/-1 and 50 are the amount of movement per pulse and the delay between pulses respectively.  I have also tried varied pulse amounts and delays with the same result.

 

Is there something I'm missing with regards to how IL-2 interprets mousewheel inputs?  Is there something I need to do with TARGET to force a repeat?

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