4 ms·
You'd think that rather than getting low-level events for "LMB Click" / "RMB Click", the Windows DirectInput API would be handing Unity events for "Primary Mous
by derefr 6y ago
You'd think that rather than getting low-level events for "LMB Click" / "RMB Click", the Windows DirectInput API would be handing Unity events for "Primary Mouse Button Click" / "Secondary Mouse Button Click." OSes don't emit raw un-keymapped keysyms to apps, so why are they emitting raw un-mapped mouse-syms?
- throwaway3699 6y agoUnity APIs have always been an incomplete mess. Big sprawling projects will do it themselves, with a proper action dispatch pattern somewhere, and small indie projects will do it the basic way, like so: https://docs.unity3d.com/ScriptReference/Input.GetMouseButtonDown.html https://docs.unity3d.com/ScriptReference/Input.GetMouseButto... Meanwhile Unity has tried releasing several different input management solutions, none of which are particularly popular. With more exotic stuff like XR/VR or Steam Input it's even more of a mess.