Frictional Games Forum (read-only)

Full Version: [Suggestion] Support for extra mouse buttons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Couldn't decide where to post this since it's a suggestion for an engine feature which would benefit both Amnesia games on all platfroms but anyway, could you guys add support for more mouse buttons? (SDL_BUTTON_X1, SDL_BUTTON_X2, ...)

At least on Windows, for typical 5-button mouse, it's as simple as checking for either SDL_BUTTON_X1 or SDL_BUTTON_X2 when responding to SDL_MOUSEBUTTONDOWN and SDL_MOUSEBUTTONUP events. A bit different for Linux though since those exact same buttons generate a different number for button member of SDL_MouseButtonEvent struct.