The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Support for extra mouse buttons
UCyborg Offline
Junior Member

Posts: 2
Threads: 2
Joined: Sep 2013
Reputation: 0
#1
Solved: 10 Years, 9 Months, 3 Weeks ago [Suggestion] Support for extra mouse buttons

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.
(This post was last modified: 09-12-2013, 10:15 PM by UCyborg.)
09-12-2013, 09:48 PM
Find


Messages In This Thread
[Suggestion] Support for extra mouse buttons - by UCyborg - 09-12-2013, 09:48 PM



Users browsing this thread: 1 Guest(s)