You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writing the code changes in fe1aee1 made me realize that the current mouse handling logic in input.c is pretty clunky. It assumes a fixed set of mouse buttons, and a mouse wheel that only scrolls vertically. As many modern mice are as complex as gamepads, this code should be refactored to be more flexible.
The text was updated successfully, but these errors were encountered:
No more special cases for each button. The large amount of
copy-and-paste code was really starting to get on my nerves, especially
once I added support for the back and forward buttons. This file could
still use more refactoring, so I'm leaving #290 open.
To be honest, input.c could use to be split off into separate source files for keyboard, mouse and joystick instead of the huge monolithic mess it is now.
Writing the code changes in fe1aee1 made me realize that the current mouse handling logic in
input.c
is pretty clunky. It assumes a fixed set of mouse buttons, and a mouse wheel that only scrolls vertically. As many modern mice are as complex as gamepads, this code should be refactored to be more flexible.The text was updated successfully, but these errors were encountered: