Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Crash with Saitek Pro Flight Yoke System
09-29-2014, 11:27 AM,
#6
RE: Crash with Saitek Pro Flight Yoke System
(09-28-2014, 05:44 PM)biziclop Wrote: I've managed to further narrow down the source of the problem to the fact that I've got two joysticks (the yoke and the pedals).

If I remove the pedals, everything works fine.

I also checked the exception code, and it's access violation. Maybe event.jbutton.which returns a number that is different from 0 or 1? I noticed that in eventsystem::Init() the joystick vector is simply built in the order the controllers are enumerated but doesn't check SDL_Joystick.instance_id. But in eventsystem:TonguerocessEvents() it uses the value of event.jbutton.which as an index into the joystick vector.

It could be a complete red herring though.
You are correct. The instance id is not equal to the device id. From testing here they turned out in reverse order for me, first device instance_id being 1 and second 0.

I am wondering why it worked before? Anyway, I'll push a fix, just need to do some more testing.
Reply


Messages In This Thread
RE: Crash with Saitek Pro Flight Yoke System - by NaN - 09-29-2014, 11:27 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)