Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: G25 only partly working in v1_2  (Read 822 times)

tdev

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 20
    • View Profile
G25 only partly working in v1_2
« on: June 04, 2009, 03:32:42 AM »

i have problems getting G25 support working for our game.

a) the g25 has two modes:
1) report brake/gas as one splitted axle. In this mode the pedals are not recognized at all
2) report brake/gas on its own axle: working perfectly

b) the clutch pedal (axis 4) is not working at all :(

tested it with the commadline testing utility.
any ideas what it could be? how to debug more?
Logged

tdev

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 20
    • View Profile
Re: G25 only partly working in v1_2
« Reply #1 on: June 04, 2009, 04:32:39 AM »

update: the clutch is working (is recognized as slider0), but does not show up in the commandline util, since a slider callback is missing. With this patch the commandline util can also display slider changes:

Code: [Select]
Index: demos/OISConsole.cpp
===================================================================
--- demos/OISConsole.cpp (revision 319)
+++ demos/OISConsole.cpp (working copy)
@@ -109,6 +109,11 @@
  std::cout << std::endl << arg.device->vendor() << ". Button Released # " << button;
  return true;
  }
+ bool sliderMoved( const JoyStickEvent &arg, int slider )
+ {
+ std::cout << std::endl << arg.device->vendor() << ". Slider # " << slider << " Value: " << arg.state.mSliders[slider].abX;
+ return true;
+ }
  bool axisMoved( const JoyStickEvent &arg, int axis )
  {
  //Provide a little dead zone
Logged

tdev

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 20
    • View Profile
Re: G25 only partly working in v1_2
« Reply #2 on: June 04, 2009, 06:24:09 AM »

slightly improved:
Code: [Select]
bool sliderMoved( const JoyStickEvent &arg, int slider )
{
std::cout << std::endl << arg.device->vendor() << ". Slider # " << slider << " ValueX: " << arg.state.mSliders[slider].abX << " ValueY: " << arg.state.mSliders[slider].abY;
return true;
}
Logged