Jump to content
Sign in to follow this  
d3nn16

Lean gradually using mouse wheel

Recommended Posts

I have the cheapest Logitech mouse, the optical black one.

It has 2 buttons and a wheel that I can push and scroll up and down.

I tested the lean action by binding it to the joystick' slider and I noticed I can do a gradual lean (different from the one obtained with the keys on the keyboard which makes the avatar lean to the max).

I tried binding the lean right/left actions to the "mouse wheel up"/"mouse wheel down" movements but the result is that scrolling the wheel up (or down) is equivalent to several push/release movements of a normal key on the keyboard.

Is there a way to force the mouse wheel act as the joystick' slider ?

Binding the lean right/left actions to "mouse right"/"mouse left" movements allows me to make my avatar lean more than it is possible with the keyboard or mouse :

leaning at 90°

Share this post


Link to post
Share on other sites

Cool, didn't know you could do gradual leaning.

Seems like it just autocenters unless you keep applying more scrolling or mouse movement though.

And the 90 degree thing is a bit silly heh.

I might play with added leaning on mouse left/right for a bit, interesting effect. Wobbly.

Share this post


Link to post
Share on other sites

Hmm that bug/cheat was reported before,but then only for trackIR.

Strange that it also occurs with mouse. Anyway, gradual leaning would be nice, but the vertical mouse button isnt really handy for that I think.

Share this post


Link to post
Share on other sites

perhaps decreasing the number of lines to skip with the mouse wheel in your mouse drivers configuration utility will help? I think it's worth a shot.

Share this post


Link to post
Share on other sites

I looked at the codes corresponding to actions in <playername>.ArmAProfile.

Here's a part of that file :

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">keyMoveForward[]={21};

keyMoveBack[]={35};

keyTurnLeft[]={34};

keyTurnRight[]={36};

keyMoveUp[]={37};

keyMoveDown[]={23};

keyMoveFastForward[]={536870932};

keyMoveSlowForward[]={};

keyMoveLeft[]={211};

keyMoveRight[]={536870934};

keyEvasiveForward[]={440};

keyEvasiveLeft[]={20};

keyEvasiveRight[]={22};

In this example keyMoveFastForward[] bounds to "d + t" key combination.

Anyone knows how these values are generated ?

Is it possible to generate the value corresponding to the combination of a key on the keyboard and the mouse wheel ?

Here's what I could find :

Mouse left 1048576

y 21

d 32

d + t 536870932

d + y 536870933

d + u 536870934

y + d 352321568

Are those values obtained by generating codes for all possible key pairs ?

Share this post


Link to post
Share on other sites

I dont think its possible to use the mousewheel for leaning, since its a discrete input I think (it send only up and down, no real values)

Share this post


Link to post
Share on other sites

No one knows a mouse driver that allows to transform that wheel into an analog input ?

Share this post


Link to post
Share on other sites

Found it in Google and was about to post the same thing  tounge2.gif

Do you have the script to map the mouse wheel to the JoyZ axis (arma slider1+ slider1-) ? What I want to do is roll the wheel up and the script translates it to moving the slider1+ for instance.

Tried this but it doesn't work :

WheelUp::

GetKeyState, joyzval, JoyZ

JoyZ = %joyzval% + 5

return

WheelDown::

GetKeyState, joyzval, JoyZ

JoyZ = %joyzval% - 5

return

Share this post


Link to post
Share on other sites

How is gradual leaning a bug/cheat/exploit? I have trackIR and I never use gradual leaning because if I want to lean so precise I think I have to move too much IRL. I simply lean full using the keyboard and then walk up the the edge of the wall while leaning to only poke out a bit. Either that or I just lean out fully. Anyone using gradual leaning who thinks its the shit ?  smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×