Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

borrowing quakeforge's joystick code for modern engines

| Inside3d Forums Forum Index -> Engine Programming

View previous topic :: View next topic
Author | Message
--- | ---
Nocebo Joined: 09 May 2005 Posts: 6 |

Posted: Fri Mar 02, 2007 7:27 pm Post subject: borrowing quakeforge's joystick code for modern engines |

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 |

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

Posted: Fri Mar 02, 2007 8:20 pm Post subject: |

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 |

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

Posted: Sat Mar 03, 2007 3:11 am Post subject: |

The SDL version of DarkPlaces has very good joystick support.

Back to top |

Nocebo Joined: 09 May 2005 Posts: 6 |

Posted: Sat Mar 03, 2007 8:04 am Post subject: |

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 |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Sat Mar 03, 2007 10:19 am Post subject: |

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 |

Nocebo Joined: 09 May 2005 Posts: 6 |

Posted: Sat Mar 03, 2007 6:53 pm Post subject: |

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 |

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

Posted: Sat Mar 03, 2007 11:59 pm Post subject: |

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 |

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

Posted: Sun Mar 04, 2007 10:05 pm Post subject: |

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 |

Display posts from previous:

| 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