I am working on an upgrade system and have implemented mouse navigation that works similar to Google Maps. I want to improve it further to support navigation with trackpads/mouse pads on laptops. But I need to do different logic depending on the input source.
For example, this is what I have in mind:
- Mouse middle click & position delta → Move up & down & left & right
- Mouse scroll y → Zoom in & out
- Mouse scroll x → Move left & right
- Mousepad/trackpad scroll y → Move up & down
I got 1, 2 and 3 to work. But I can’t implement 4 because its input overlaps with 1. So I want to be able to detect whether the scrolling is from a mouse or a mousepad, so I can handle it differently.
Here is a similar post: On old Input system can you tell if using mouse or trackpad - Questions & Answers - Unity Discussions
I didn’t specify the context as new or old input system because it doesn’t matter to me, if it can help me do this, I’ll use it.