Game Development Community

Joystick Crash

by Richard Foge · in Torque Game Builder · 10/24/2006 (4:51 pm) · 1 replies

If I enable the joystick with:

$enableDirectInput = true;
activateDirectInput();
enableJoystick();

TGB crashes if I change focus away from the TGB window. But only after I've used the joystick.

I thought I found the problem, but I was wrong.

Mod, please leave the thread open.

#1
11/23/2006 (12:40 pm)
TGB crashes for me even if I don't use the joystick.

To reproduce, enable the joystick with:

$enableDirectInput = true;
activateDirectInput();
enableJoystick();

Then quickly alt tab back and forth between TGB and desktop or another program. It should crash on the 2nd or 3rd time you refocus on TGB.