Tremulous Forum

General => Troubleshooting => Topic started by: SecondGod on February 04, 2007, 11:31:18 pm

Title: Joystick in Tremulous?
Post by: SecondGod on February 04, 2007, 11:31:18 pm
ive been trying to get a joystick to run with tremulous...  ive looked over a few pages in the troubleshooting section but i cant seem to find anything about using a joystick with tremulous, can anyone help me out?
Title: Joystick in Tremulous?
Post by: n00b pl0x on February 04, 2007, 11:37:18 pm
its probably not compatible because no1 ever thought of using a joystick with trem o.O
Title: Joystick in Tremulous?
Post by: SecondGod on February 04, 2007, 11:40:11 pm
it says after i try and change the controls with my joystick that "joystick is not active" theres gotta be a way to do it...   :-?   I hope...
Title: Joystick in Tremulous?
Post by: kevlarman on February 04, 2007, 11:58:17 pm
see if you can find a guide to setting up a joystick for quake3 somewhere on the internet, it should be pretty much identical in tremulous (and just in case: make sure the joystick works and your OS recognizes it first)
Title: Joystick in Tremulous?
Post by: SecondGod on February 04, 2007, 11:59:34 pm
thanks ill check it out...  i know for sure that my PC can recognize and all that ive been using it since ive wanted to use it with tremulous
Title: Joystick in Tremulous?
Post by: TinMan on February 05, 2007, 10:20:12 pm
It works the same as it does with Quake 3, google "joystick quake 3"
Title: Joystick in Tremulous?
Post by: SecondGod on February 06, 2007, 12:33:43 am
Now I'm just really frustrated... :( I googled Quake 3 joystick and all that, but none of the links turn up with how to activate it.  All the links I've found have been amazon stuff or where to purchase quake 3.  There was the odd thing that contained "Joystick not active"...  Other than that there's nothing.  Can someone please just say how it can be done, it would be much appreciated.
Title: Joystick in Tremulous?
Post by: kevlarman on February 06, 2007, 01:19:01 am
none of us are actually willing to play tremulous wth a joystick, because a mouse is much more useful.
Title: Joystick in Tremulous?
Post by: TinMan on February 06, 2007, 01:27:22 am
Some of the joystick commands are in here: http://q3console.planetquake.gamespy.com/commands.htm

Pretty much if your joystick works with it then you randomly bind stuff by button number until you get a setup that you like.

@kevlarman
arguable, with the right joystick you can have a variable turn rate and if you're used to it then you'll be good with it. I have different configs for all different inputs and find using a touchpad on a laptop to be easiest and most accurate for me out of touchpad, joystick, mouse, trackball, and keyboard look.
Title: Joystick in Tremulous?
Post by: SecondGod on February 06, 2007, 01:31:35 am
Thanks tinman, however, in knowing these joystick commands, where would I apply this?  Inside of Tremulous doesn't allow me to set a joystick, instead it says "Joystick not active".  Is there some sort of file where I have to change outside of Tremulous?
Title: Joystick in Tremulous?
Post by: Undeference on February 06, 2007, 03:16:16 am
in_joystick 1
I tried playing with a joystick for a couple days. If I wanted any degree of actual control, I found I turned way too slow to be effective. I gave up on that and just play with a mouse.
Title: Joystick in Tremulous?
Post by: a Turret on February 14, 2007, 05:18:24 am
I was going through \src\client\keycodes.h

and i found a list of buttons (or something like that)


Code: [Select]
K_NONE = -1,
K_TAB = 9,
K_ENTER = 13,
K_ESCAPE = 27,
K_SPACE = 32,

K_BACKSPACE = 127,

K_COMMAND = 128,
K_CAPSLOCK,
K_POWER,
K_PAUSE,

K_UPARROW,
K_DOWNARROW,
K_LEFTARROW,
K_RIGHTARROW,

K_ALT,
K_CTRL,
K_SHIFT,
K_INS,
K_DEL,
K_PGDN,
K_PGUP,
K_HOME,
K_END,

K_F1,
K_F2,
K_F3,
K_F4,
K_F5,
K_F6,
K_F7,
K_F8,
K_F9,
K_F10,
K_F11,
K_F12,
K_F13,
K_F14,
K_F15,

K_KP_HOME,
K_KP_UPARROW,
K_KP_PGUP,
K_KP_LEFTARROW,
K_KP_5,
K_KP_RIGHTARROW,
K_KP_END,
K_KP_DOWNARROW,
K_KP_PGDN,
K_KP_ENTER,
K_KP_INS,
K_KP_DEL,
K_KP_SLASH,
K_KP_MINUS,
K_KP_PLUS,
K_KP_NUMLOCK,
K_KP_STAR,
K_KP_EQUALS,

K_MOUSE1,
K_MOUSE2,
K_MOUSE3,
K_MOUSE4,
K_MOUSE5,

K_MWHEELDOWN,
K_MWHEELUP,

K_JOY1,
K_JOY2,
K_JOY3,
K_JOY4,
K_JOY5,
K_JOY6,
K_JOY7,
K_JOY8,
K_JOY9,
K_JOY10,
K_JOY11,
K_JOY12,
K_JOY13,
K_JOY14,
K_JOY15,
K_JOY16,
K_JOY17,
K_JOY18,
K_JOY19,
K_JOY20,
K_JOY21,
K_JOY22,
K_JOY23,
K_JOY24,
K_JOY25,
K_JOY26,
K_JOY27,
K_JOY28,
K_JOY29,
K_JOY30,
K_JOY31,
K_JOY32,

K_AUX1,
K_AUX2,
K_AUX3,
K_AUX4,
K_AUX5,
K_AUX6,
K_AUX7,
K_AUX8,
K_AUX9,
K_AUX10,
K_AUX11,
K_AUX12,
K_AUX13,
K_AUX14,
K_AUX15,
K_AUX16,


As you can see there is "K_Joy##" this could be joystick. try changing your binds to those and see if they work.


No idea if this will work or not, so GL
Title: Joystick in Tremulous?
Post by: SecondGod on February 14, 2007, 05:21:51 am
Thanks a bunch a turret.  I've been waiting for a while for an accurate response.  It's been bugging me using the mouse lately.