Getting the joystick working.

Expanding and utilizing the engine via C++.
4 posts Page 1 of 1
chriscalef
Posts: 381
Joined: Mon Feb 09, 2015 7:48 pm
by chriscalef » Sat Mar 10, 2018 1:41 am
Mine is a USB Logitech Extreme3DPro, it seems to be attached, isJoystickEnabled() returns "1", but bindings to "joystick" or "joystick0" don't work. I found this old link that still seemed to be partially relevant, at least re: the changes to winDirectInput.cpp

https://www.garagegames.com/community/f ... read/36053

However, when I call echoInputState() I get "DirectInput not enabled", even though $enableDirectInput = 1.

Anybody got any ideas?
Timmy
Posts: 366
Joined: Thu Feb 05, 2015 3:20 am
  by Timmy » Mon Mar 12, 2018 1:30 am
If you are building with TORQUE_SDL enabled, it will disable the DirectinputManager stuff. To be honest i have no clue what the state of joystick support is like when sdl is enabled but considering there is no SDL_JoystickOpen() in the source code, i would say not good :lol: Jokes aside, there is no joystick support with sdl yet (well sdl handles joysticks just fine, just no support in the t3d sdl platform stuff i mean), so you will have to build the engine with TORQUE_SDL disabled (obviously windows only) to get joystick support for now and unfortunately if you are using development branch this is no longer supported, so no joystick support until someone writes in support for the sdl joystick stuff.
chriscalef
Posts: 381
Joined: Mon Feb 09, 2015 7:48 pm
by chriscalef » Mon Mar 12, 2018 6:50 am
Oh, I see. Well thanks, that's good to know. I believe I can solve my immediate problem by sending joystick trigger data over from FlightGear, but glad to know I should stop beating my head against the T3D implementation for now.
OTHGMars
Posts: 27
Joined: Fri Jul 14, 2017 2:19 am
by OTHGMars » Tue Mar 20, 2018 7:31 pm
If you could, please try that Logitech flight stick with this branch http://forums.torque3d.org/viewtopic.php?f=10&t=1205 and post the results. I am very curious if it detects it as a GameController or not and if it handles the axes correctly. I do not have any similar devices to test with.
4 posts Page 1 of 1

Who is online

Users browsing this forum: Google [Bot] and 4 guests