Inside3D!
     

borrowing quakeforge's joystick code for modern engines

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming
View previous topic :: View next topic  
Author Message
Nocebo



Joined: 09 May 2005
Posts: 6

PostPosted: Fri Mar 02, 2007 7:27 pm    Post subject: borrowing quakeforge's joystick code for modern engines Reply with quote

The Linux ports of just about every engine I've tried all lack joystick support, which mods such as the Ascension of Vigil scream for. The lone exception I've found has been quakeforge. This is my first dive into engine coding, so forgive me if this is a dumb question, but how difficult would it be to graft quakeforge's joystick code into darkplaces or joequake?
Back to top
View user's profile Send private message
RenegadeC



Joined: 15 Oct 2004
Posts: 370
Location: The freezing hell; Canada

PostPosted: Fri Mar 02, 2007 8:20 pm    Post subject: Reply with quote

Hmm, have you tried or found any Linux programs that allow you to bind your joystick to keyboard commands?

Windows users are able to use JoyToKey to bypass Quake's terrible joystick support and therefore I've included it in the latest TAoV and future versions.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Lardarse



Joined: 05 Nov 2005
Posts: 243
Location: Bristol, UK

PostPosted: Sat Mar 03, 2007 3:11 am    Post subject: Reply with quote

The SDL version of DarkPlaces has very good joystick support.
Back to top
View user's profile Send private message
Nocebo



Joined: 09 May 2005
Posts: 6

PostPosted: Sat Mar 03, 2007 8:04 am    Post subject: Reply with quote

Yeah, I do have joy2key, but rather than sensibly looking up the documentation for it, I started poking around the Quake source.

Nice job on TAoV by the way Mr. C. The fighting engine is a lot of fun, the models are damn spiffy, and the nods to the Igavanias and the Guardian Heroes games are hip.

And unless I'm missing something the current release versions of DarkPlaces only seem to support the joystick in windows; there's even a note in the todo list about it. Consequently I nabbed the newest dp beta and everything seems to be in order joystick-wise. Thanks for the help though.
Back to top
View user's profile Send private message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Sat Mar 03, 2007 10:19 am    Post subject: Reply with quote

Did you try the SDL version?
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
Nocebo



Joined: 09 May 2005
Posts: 6

PostPosted: Sat Mar 03, 2007 6:53 pm    Post subject: Reply with quote

Yeah, the 20060725 SDL build wasn't working with my joystick. I didn't see anything in the code like related cvars and the like, besides the naming of joy1 and so on for key assignments. Perhaps, I'm not looking in the right place.

Just the SDL build in 20070302beta1 seems to support it, which I suppose is a limitation of the APIs?
Back to top
View user's profile Send private message
RenegadeC



Joined: 15 Oct 2004
Posts: 370
Location: The freezing hell; Canada

PostPosted: Sat Mar 03, 2007 11:59 pm    Post subject: Reply with quote

Nocebo wrote:
Yeah, I do have joy2key, but rather than sensibly looking up the documentation for it, I started poking around the Quake source.

Nice job on TAoV by the way Mr. C. The fighting engine is a lot of fun, the models are damn spiffy, and the nods to the Igavanias and the Guardian Heroes games are hip.

And unless I'm missing something the current release versions of DarkPlaces only seem to support the joystick in windows; there's even a note in the todo list about it. Consequently I nabbed the newest dp beta and everything seems to be in order joystick-wise. Thanks for the help though.


Thanks! Also I disabled joystick in the settings.cfg, you may want to re-enable it if you haven't already.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Lardarse



Joined: 05 Nov 2005
Posts: 243
Location: Bristol, UK

PostPosted: Sun Mar 04, 2007 10:05 pm    Post subject: Reply with quote

Nocebo wrote:
Perhaps, I'm not looking in the right place.

LordHavoc tore out the old joystick code from the SDL version, and it instead uses the SDL routines. Drop the console and type "joy" then hit tab to autocomplete. The axis cvars let you assign a direction to each axis, or -1 to disable input from that axis. The other 2 do what they say on the tin...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group