Button name for scrollwheel in input manager

Hello,

Can anyone tell me the button name for mouse scrollwheel up and down in input manager? As it stands, the wheel is performing its function, but only the positive button is configurable by the player. It looks like both buttons need to be set in the input manager to allow the players to configure them.

The screenshot should help clarify the info I need. Thanks for taking the time!

EDIT: Still haven’t been able to find this, any takers?

10053-scrollwheel.png

4 Answers

4

It looks like this is the answer.

Make sure that the axis is setup in the input manager and named accordingly. The default “Mouse ScrollWheel” is of type “Mouse Movement” and uses the 3rd axis which is normally the scrollwheel.

Hi Ralph. Thanks for suggestion, but what I am looking for is the name of the positive and negative button for scrollwheel, so I can enter them in inputmanager (See the question marks in the attached .png). This in turn will allow the player to change the mapping for these functions in the build launcher/configuration

I'm not at my computer, but I think the problem is that the scrollwheel type is wrong, it isn't a button, it's the axis of a joystick/mouse.

You should go with “Mouse ScrollWheel”:

var v = Input.GetAxis(“Mouse ScrollWheel”);
if (v > 0)
   //Upwards
else if (v < 0)
   //Downwards

It’s mouse 2

You can't scroll with this though

As long as you have these settings it should work even if you don’t have player input set to anything Gravity 1000
Dead 0.001
Sensitivity 1000
Snap - no
invert - no
type - mouse movement
axis - 3rd axis (joysticks and scroll wheel