Game Development Community

additional mouse buttons

by Tom Vogt · in General Discussion · 11/25/2002 (2:07 am) · 2 replies

I recently bought a Logitech MX500, which has 7 buttons (and an 8th which I don't yet have working).

Torque, however, only takes the first 3. I've looked into the engine (the input part in platformX86Unix) and it seems to be hard-coded to a maximum of 3.

Is this an SDL restriction or could it be changed? It would prefer very much to raise this limit somewhat instead of using imwheel or such like.

#1
11/25/2002 (6:09 am)
Looks like SDL only defines three constants, but you might still be able to use it...depends on whether X supports it or not. If you look at mouseButtonEvent in x86UnixInputManager, you'll see that it uses the three SDL defines then it uses two defines from the X windows headers. In the switch statement, you could try inserting a "default" section that uses dPrintf (or Con::printf) to print out the values of any input button that isn't matched. The just add new case statements for that value which set the objInst variable appropriately.

Probably we should move this dicussion to the SDK forums though...
#2
11/25/2002 (6:12 am)
Yes, the buttons are supported by X (except for the 8th one).

I'll move this to an SDK forum. See what can be done.