Forums

Full Version: joystick/wheel axis config
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
joystick/wheel axis config does not act as discribed in documentaion. to set the direction of the uses axis you have to use prositive or negative which is different to the documentation. the doc says that you have to use true for positive and false for negative axis but only positive and negative is read in control.cc
joystick/wheel axis config does not act as discribed in documentaion. to set the direction of the uses axis you have to use prositive or negative which is different to the documentation. the doc says that you have to use true for positive and false for negative axis but only positive and negative is read in control.cc
Which documentation are you referring to? Most of our docs are a little behind as we don't have much time to update them. You're correct though, "positive" and "negative" are what you're looking for.

edit: Out of curiosity, what are you trying to find? You should be able to set your controls correctly from the menus, and you shouldn't really have to edit the controls file. Are you having any problems with the menu? If so, which version of VDrift are you running?
Which documentation are you referring to? Most of our docs are a little behind as we don't have much time to update them. You're correct though, "positive" and "negative" are what you're looking for.

edit: Out of curiosity, what are you trying to find? You should be able to set your controls correctly from the menus, and you shouldn't really have to edit the controls file. Are you having any problems with the menu? If so, which version of VDrift are you running?
i've used the sources form 2006-07-08 with the patch for car.cc under fc4 (gcc4+)
my logitech formula gp was detected but i'm not able to configure or calibtrate. so i have modified the controls file (this was the doc if used) but this did not work, so i have debugged and found that the control.cc does read only "positive" and "negative" and not "true" and "false" as documented in ~/.vdrift/controls
i've used the sources form 2006-07-08 with the patch for car.cc under fc4 (gcc4+)
my logitech formula gp was detected but i'm not able to configure or calibtrate. so i have modified the controls file (this was the doc if used) but this did not work, so i have debugged and found that the control.cc does read only "positive" and "negative" and not "true" and "false" as documented in ~/.vdrift/controls
Well to add joystick controls you must first calibrate. When you enter the joystick calibration menu, and move the joystick axes, what happens? Anything at all?
Well to add joystick controls you must first calibrate. When you enter the joystick calibration menu, and move the joystick axes, what happens? Anything at all?
thelusiv Wrote:Well to add joystick controls you must first calibrate. When you enter the joystick calibration menu, and move the joystick axes, what happens?
nothing, i did not see anything exept the normal menu controls
thelusiv Wrote:Anything at all?

no, nothing


but i can't tell you more at the moment or try something because im writing from work. but with manual config im able to play.
thelusiv Wrote:Well to add joystick controls you must first calibrate. When you enter the joystick calibration menu, and move the joystick axes, what happens?
nothing, i did not see anything exept the normal menu controls
thelusiv Wrote:Anything at all?

no, nothing


but i can't tell you more at the moment or try something because im writing from work. but with manual config im able to play.
Hmmm, OK...Well, what's supposed to happen when you go to the calibration menu, is when you move the joystick, wheel, or whatever, it shows a sort of crosshair and then fills it in with blue across the range you move the joystick device. Then when you press OK and it sees you've made your calibration it sets calibrated = 1 in VDrift.config and remembers the calibrations.

So when you turn your wheel/move your joystick instead of the big square calibration fields popping up, it just sits there, and does nothing, is this correct?

Can you tell me anything about your joystick - what axes are you moving that aren't showing up? Maybe a program like jstest could tell you, or jscalibrator (but beware...I've had this program mess up the joystick input altogether before).

Thanks for the input and if you don't have time to find out that's understandable, but I can't fix it without more info, so...whatever you can get me helps Smile
Hmmm, OK...Well, what's supposed to happen when you go to the calibration menu, is when you move the joystick, wheel, or whatever, it shows a sort of crosshair and then fills it in with blue across the range you move the joystick device. Then when you press OK and it sees you've made your calibration it sets calibrated = 1 in VDrift.config and remembers the calibrations.

So when you turn your wheel/move your joystick instead of the big square calibration fields popping up, it just sits there, and does nothing, is this correct?

Can you tell me anything about your joystick - what axes are you moving that aren't showing up? Maybe a program like jstest could tell you, or jscalibrator (but beware...I've had this program mess up the joystick input altogether before).

Thanks for the input and if you don't have time to find out that's understandable, but I can't fix it without more info, so...whatever you can get me helps Smile
ok, yesterday i have done some debugging, when i press the calibrate butten the action is set to "joystickcalibrate" but i havn't any point (in src/gui/gui.cpp) where this action is computed (ProcessAction("joystickcalibrate")) this might be the problem i think it has to be "updatecalibration".
so i will get the lastest version from repo and check over the weekend if i can find the problem.
ok, yesterday i have done some debugging, when i press the calibrate butten the action is set to "joystickcalibrate" but i havn't any point (in src/gui/gui.cpp) where this action is computed (ProcessAction("joystickcalibrate")) this might be the problem i think it has to be "updatecalibration".
so i will get the lastest version from repo and check over the weekend if i can find the problem.
The UpdateCalibration action is used when the OK button is pressed on the Joystick Calibration menu. The actual calibration is done by the Calibration widget that appears on the Joystick Calibration menu, and has graphs of the joystick axis ranges with blue fill representing the area that has been reached by the moving axes.

The JoystickCalibrate action is just used to change to the Joystick Calibration menu. That's the name of the menu file as well as the name of the menu itself.

Again, all you should have to do is go to the Joystick Calibration menu, wiggle your joystick(s) around until the blue area won't get any bigger, then click OK.

If this is not working for you, are you sure that VDrift is recognizing your joystick device? When you run VDrift from the command line, it reports how many joysticks are connected and usable by the game as it starts up. It will look something like this:
Code:
1 joystick(s) found:
    0. Logitech Inc. WingMan RumblePad
Pages: 1 2