Need help with the eventdata (New Input system)

Hey all!
I’ve been converting my whole project into using the new Input system, but now I have been struggling with this issue for a day now. It’s really bugging me.

I have an inventory system which uses the event system and the “OnPointerDown” method. It used to work just fine with the old input system, but after implementing the new input system, it can’t tell the difference on which mouse button I press. The is always = 2 no matter which mouse button I press.

It should be like: Left Click = -1, Right Click = -2 and Middle click = -3 etc.

I’ve tried the same procedure in a different project as well, but with the same result.


Any solutions?

I encountered the same issue in Unity 2021.3.25f1. A workaround I found on the forums was to reference the ‘eventData.button.ToString()’. The button is correctly differentiating left/middle/right clicks.

If there is a reason the pointer ids are all returning 2 due to configuration though I would appreciate anyone’s answer. Otherwise looks like a bug.