multiple mouse buttons

Moderator
Posts: 1,140
Joined: 2005.07
Post: #1
Is there any way to detect mouse events for more than 3 mouse buttons? I know that there's 1-3 for left, middle, and right, then scroll up and down for 4 and 5, but I think I saw somewhere that (at least some implementations) use following numbers as other mouse buttons. Is this true, or widespread? I thought of using SDL_GetMouseState, but in a series of events, if it was a very fast click, unless it sets the state with each polled event for SDL_PollEvent, it wouldn't register both the down and up. (please tell me if it does wait for each SDL_PollEvent to get the state, because that would be very useful Rasp)
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #2

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #3
As pointed out in the previous post, HID is the way to go, at least until Leopard arrives Wink
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #4
Yeah HID on mac definitly, this code works on window and linux as well just so you know.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Moderator
Posts: 1,140
Joined: 2005.07
Post: #5
Cross-platform is certainly the point. It looks like I'll be using manymouse, thanks! Smile
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #6
DoG Wrote:As pointed out in the previous post, HID is the way to go, at least until Leopard arrives Wink

Mind expanding on that statement.

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Post Reply