Mouse4 doesn't work?

Im haveing trouble getting the fifth mouse button on my mouse to work.

I know my mouse button works, it does in other applications.

Its a Microsoft IntelliMouse Explorer 3.0.

Im useing:

if (Input.GetKeyDown(KeyCode.Mouse4)){
//dosomething
}

For some reason nothing will happen

If I use:
If (Input.GetKeyDown(KeyCode.Mouse0)){
//dosomething
}

My first button on my mouse will work and it will work all the way up to the fourth button, thats Mouse3 for the keycode.

But when I use Mouse4 keycode or 5 or 6 my mouse button 5 on my mouse will just not work.

Im not sure what is wrong.
Any help or suggestions is appreciated.

I know my mouse works and I know my code works, can someone who has a 5 or more button mouse try useing mouse4 and see if it works for them?

Works fine. Although normally I have the 5th button assigned to Dashboard, in which case it’s not detected (as I would expect).

–Eric

What type of mouse are you useing Eric? What do you mean exactly by assigned to Dashboard?
Do you use drivers for your mouse?

Logitech MX518.

When I click the fifth button, it makes Dashboard appear. It’s a Mac thing.

Not exactly, although I do use Steermouse since the mouse acceleration settings in OS X are lacking.

–Eric

So then you are useing mac? Perhaps a windows reason for it not working?

i have what i believe to be 6 buttons on my mouse. i’ll see what happens with unity.

Ok, unity only detects the Mouse0 to Mouse3 for me.

I’ve got a Microsoft Sidewinder mouse.

There are several different implementations of the input code - mac/windows/web player. Especially the mac side uses several different APIs depending on the environment used.

In general, you cannot assume more then 3 mouse buttons to be supported - while it make work in some implementations, it certainly will not work in all.

How can I make it work for all, what other types of implementations can I use to ensure I can grab the input on all the platforms?

There probably isn’t any way to guarantee consistency across all platforms. You might be able to do something with plugin code for standalones, but this won’t work with webplayers.