- Home /
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?
![alt text][1] [1]: /storage/temp/10053-scrollwheel.png
Answer by RalphTrickey · Jun 25, 2013 at 08:15 PM
It looks like this is the answer.
http://answers.unity3d.com/questions/13485/implementing-the-scrollwheel.html
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.
Answer by AlirezaSH2004 · May 18, 2020 at 03:36 AM
You should go with “Mouse ScrollWheel”:
var v = Input.GetAxis(“Mouse ScrollWheel”);
if (v > 0)
//Upwards
else if (v < 0)
//Downwards
Answer by unity_XoThIOHd3Bx0Lw · May 18, 2020 at 05:23 AM
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
Your answer
