PDA

View Full Version : Info on the new joystick code


Pate
September 21st, 2004, 05:08 AM
There have been very little action on this forum, so I figured I'd tell you about the new joystick code. The old crappy (Linux-only?) joy code has been ripped out and replaced with a brand-spanking new one. Features include:

- supports up to 4 joysticks on one machine
- up to 16 buttons on each joy can be bound to any action, just like keyboard keys
- any axis can be bound to any movement action (looking, moving, strafing)
- individual scaling values for each axis
- totally cross-platform, so it works on Linux, Win, OS X ...

There is currently no menu for the axis binding, it has to be done at the console. Luckily, bindings done at the console are saved and persist over sessions. We're hoping to get the menu thing fixed.

Planky
September 21st, 2004, 02:01 PM
I assume you did this Pate? If so, thats fanastic! I wont have to worry about trying to get a second mouse to work :)

PumpkinSmasher
September 21st, 2004, 02:23 PM
sounds awesome, hopefully we can check it out in the next alpha or beta.

Pate
September 21st, 2004, 02:31 PM
Yeah, this is my code. Suprisingly I don't like playing with joystick all that much. I have never found an FPS game that would be enjoyable to play with joysticks. Yes, that includes Metroid Prime. IMHO mouse+keyboard combo is way superior.

Planky
September 21st, 2004, 03:56 PM
Yes, I quite agree - but it is useful when you only have one pc and two people wanting to play :)

PumpkinSmasher
September 21st, 2004, 04:13 PM
I prefer keyboard and mouse, but it is a great help with multiplayer play. I love the split-screen option, and now it'll be easier to use.

iori
September 21st, 2004, 05:19 PM
I was wondering when you were going to mention this ;)
I dont like joysticks either, but its comprehensive nonetheless.

The Undertaker
September 21st, 2004, 07:10 PM
supports up to 4 joysticks on one machine
Does this mean something else is on the way too? Or are there Doom playing monkeys that use 2 joysticks.

Pate
September 22nd, 2004, 01:46 AM
Does this mean something else is on the way too?

Possibly, but that depends on a couple of things. Firstly, only Hurdler knows if his new renderer will support n-way split screen. Secondly the input code is a bit of a mess. Making it support more than two players is not all that straightforward.

Or are there Doom playing monkeys that use 2 joysticks.

You can use two joysticks to simulate PS2 Dual Shock pads, by binding one stick to movement and another to looking around.

jester
September 22nd, 2004, 09:07 AM
This is outstanding news.

I have one of those adaptors that lets you use Playstation joypads on your PC. A couple of questions though.

1. Will you be able to configure every single button on the joypad, including the d-pad directions?
2. Any chance you guys will add an option to change the speed at which you turn when you use the joypad to look left/ right? Of course, you can change it for the mouse already. It would be totally bloody brilliant if you could configure it so that it handles like the Playstation version of Doom.

Mouse and keyboard control is more effective and accurate than joypad control, but if you just want to chill out, using a joypad is less effort, and more comfortable, sometimes.

Cheers, sounds like an awesome update to Legacy.

Pate
September 22nd, 2004, 09:12 AM
1. Yes, you can. (AFAICT they are mapped to USB joy axises, which do work)
2. Yep. That would be the scaling feature mentioned above.

iori
September 22nd, 2004, 01:23 PM
Pate: This might've already been mentioned, but what about joypads like the Logitech wingman, which have 2 analog sticks? You said you could use 2 joysticks to emulate the 'p2 dual shock style', but this is only 1 joystick really...
http://www.logitech.com/lang/images/0/162.gif

Hurdler
September 22nd, 2004, 02:00 PM
Pate, the new renderer will support as many screen as you want, in OpenGL mode (maybe I should use the words "new gl renderer" since I won't touch the software renderer much).

That said, maybe under Linux you can already use your code and launch 4 instances of Doom Legacy (in windowed mode) to see if you can control different games with the different joysticks. If you try it, let me know the result ;)

Pate
September 22nd, 2004, 02:52 PM
Iori: as I said above. Any joystick axis can be bound to any action. So yes.

If you are still not convinced, I can tell you that I own a Logitech Wingman Rumblepad (the one in the picture) and have mainly used that for testing.

iori
September 22nd, 2004, 02:58 PM
Ahh good to hear!

Macro11_1
September 23rd, 2004, 11:54 PM
Ah..., Now if you could jsut get Dual Shock to work, and you'd be a god *bliss*

iori
September 24th, 2004, 12:36 AM
I assume you mean force feedback?

Pate
September 24th, 2004, 08:58 AM
Force feedback won't work, because SDL does not support it (though they are planning to (http://sdldoc.csn.ul.ie/joystick.php))

I think this is mainly because joystick manufacturers don't want to tell how their FF drivers work or something.

Macro11_1
September 24th, 2004, 06:14 PM
Oh, Darn, well i dont see their logic in that, oh well. :(

MR_ROCKET
October 9th, 2004, 09:19 AM
girls like using force feedback - 80%

guys like using force feedback - 20%

theres your logic :P

Mike.Reiner
October 12th, 2004, 09:22 PM
girls like using force feedback - 80%

guys like using force feedback - 20%

theres your logic :P
XD lol hehe im glad to hear of the new joy code, can't wait to see it it, legacy is the ONLY doom port that i actually am half decent with the joystick on... hehe everything else = mouse and keyboard.