The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
September 29, 2022, 12:56:03 pm
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Stop using my joystick!
« previous next »
Pages: [1] Print
Author Topic: Stop using my joystick!  (Read 3788 times)
Asfand Yar Qazi
Zebranky food
*
Offline Offline

Gender: Male
Posts: 3


I love YaBB 1G - SP1!


View Profile
Stop using my joystick!
« on: June 05, 2005, 06:32:52 am »

How do I stop Ur-Quan masters using my joystick?  Apart from hacking the sources with the following patch?

Code:

*** src/sc2code/libs/input/sdl/input.c.old
Sun Jun  5 01:29:38 2005
--- src/sc2code/libs/input/sdl/input.c
Sun Jun  5 01:33:08 2005
***************
*** 165,186 ****
 
SDL_EnableUNICODE(1);
 
!
if ((SDL_InitSubSystem(SDL_INIT_JOYSTICK)) == -1)
!
{
!

fprintf (stderr, "Couldn't initialize joystick subsystem: %s\n", SDL_GetError());
!

exit(-1);
!
}
!
!
fprintf (stderr, "%i joysticks were found.\n", SDL_NumJoysticks ());
!
!
nJoysticks = SDL_NumJoysticks ();
!
if (nJoysticks > 0)
!
{
!

fprintf (stderr, "The names of the joysticks are:\n");
!

for(i = 0; i < nJoysticks; i++)
!

{
!


fprintf (stderr, "    %s\n", SDL_JoystickName (i));
!

}
!

SDL_JoystickEventState (SDL_ENABLE);
!
}
 
 
_in_character_mode = FALSE;
--- 165,169 ----
 
SDL_EnableUNICODE(1);
 
!
nJoysticks = 0;
 
 
_in_character_mode = FALSE;



You see, I like to play on zSnes while I'm flying from star system to another.
Logged
Defender
Enlightened
*****
Offline Offline

Gender: Male
Posts: 815



View Profile
Re: Stop using my joystick!
« Reply #1 on: June 05, 2005, 10:06:34 am »

in your keys.cfg:

place # symbols at the beginning of your gamepad code, like this:


#joystick 0 threshold 1   # How far to move before it counts; 0-30000
#Menu-Left: joystick 0 axis 0 negative
#Player-1-Left: joystick 0 axis 0 negative
#Lander-Left: joystick 0 axis 0 negative
#Menu-Right: joystick 0 axis 0 positive
#Player-1-Right: joystick 0 axis 0 positive
#Lander-Right: joystick 0 axis 0 positive
#Menu-Up: joystick 0 axis 1 negative
#Player-1-Thrust: joystick 0 axis 1 negative
#Lander-Thrust: joystick 0 axis 1 negative
#Menu-Down: joystick 0 axis 1 positive
#Menu-Cancel: joystick 0 button 1
#Player-1-Special: joystick 0 button 1
#Menu-Select: joystick 0 button 2
#Player-1-Weapon: joystick 0 button 2
#Lander-Weapon: joystick 0 button 2
#Menu-Page-Up: joystick 0 button 4
#Menu-Page-Down: joystick 0 button 5
#Menu-Zoom-In: joystick 0 button 7
#Player-1-Escape: joystick 0 button 0
#Lander-Escape: joystick 0 button 1
#Menu-Zoom-Out: joystick 0 button 6

that should disable your joystick.
Logged
Razorback
Frungy champion
**
Offline Offline

Gender: Male
Posts: 99


We are all *happy campers*


View Profile
Re: Stop using my joystick!
« Reply #2 on: November 05, 2006, 01:28:54 am »

*bump*
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!