I just got Freespace2 installed on my AMD64 Gentoo linux box

Everything works but I've got a lot of crap hooked up to this box. I've got a Wireless keyboard made by Lemel with a 'thumb' joystick that I use like a remote control from my sofa, that thumb joystick is /dev/input/js0. I've also got a noname wireless gamepad which gets picked up as /dev/input/js1.
Once I got fs2_open running the first thing I did was go but a Logitech Attack 3 (did that today btw

). The Attack 3 gets picked up as /dev/input/js2 and jstest recognizes all the buttons (there's like 11), that little throttle lever, and of course the joystick axis's. So Linux fully supports this stick.
Unfortunately, I've discovered that fs2_open uses the Lemel keyboards thumb stick.
I want know if I can tell fs2_open to use /dev/input/js2.

I compiled my fs2_open_r and if somebody tells me how I'd be willing to modify the source to hard code /dev/input/js2.
As far as I know Linux fs2 has no launcher so I've got to use the command line and this is how I start it:
./fs2_open_r -spec -env -glow -mipmap -orbradar -window -nograb -mod derelict,mediavps
I use -window because I've got two screens and fs2 will display half on one and half on the other without it, -nograb is just so I can mouse out of the window while I'm testing things out.
BTW, kudos to the developers and artists, the game looks fantastic.
SOLUTION:Freespace uses the sdl library (at least for joystick input).
You can tell SDL what joystick you want it to use via an environmental variable.
Here's how I tell SDL I want it to use /dev/input/js2.
I go to a bash prompt and put in the following command and press enter:
SDL_JOYSTICK_DEVICE=/dev/input/js2;export SDL_JOYSTICK_DEVICE
then I start freespace in the regular way. SDL seems to default to /dev/input/js0, so if your preffered Joystick shows up as something other than that you can use the above in a bash prompt to tell it where to look.
I've got a simple script called fs2 I use to start the game:
SDL_JOYSTICK_DEVICE=/dev/input/js2;export SDL_JOYSTICK_DEVICE
./fs2_open_r -tbp -spec -glow -env -mipmap -nomotiondebris -ship_choice_3d -3dwarp -warp_flash -decals -missile_lighting -normal -3dshockwave -cache_bitmaps -snd_preload -dualscanlines -targetinfo -orbradar -ballistic_gauge -window -nograb -mod mediavps -window -nograb