Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Cobra on July 25, 2016, 03:31:50 am

Title: SDL2 + X-55 Rhino = Weirdness
Post by: Cobra on July 25, 2016, 03:31:50 am
So I downloaded a nightly and slapped SDL2.dll in my game folder. I'm assuming that's where it goes, anyway. The slapping was definitely a must. Fired up the launcher, was surprised to see actual names for my devices instead of "PC-joystick driver". I attempted to use vJoy because  FSO won't be able to discern between the X and Y axes also present on the stick. My vJoy stick ID is #1, but FSO seems to completely ignore vJoy. It also refuses to accept button and axis inputs, and using the throttle (dual throttle, so a second axis) makes FSO think I'm pitching and rolling.

So uh... is this an actual issue or is it because Saitek is dumb? This is probably unreadable but I honestly don't know how to explain it better, at least initially.
Title: Re: SDL2 + X-55 Rhino = Weirdness
Post by: m!m on July 25, 2016, 03:36:11 am
Please post your fs2_open.log file.  Instructions on how to do this can be found in this post.

The log should say what FSO thinks about the selected joystick. Which wxLauncher version are you using?
Title: Re: SDL2 + X-55 Rhino = Weirdness
Post by: Cobra on July 25, 2016, 03:58:46 am
I guess you've updated wxLauncher since I last checked. I was still using 0.10.1. Seems to have resolved the issue. Here's the log anyway, though, despite there being only one mention of joysticks (Windows reporting 16 and probably assuming each of my HIDs is a joystick input).

[EDIT] Crap, wrong log.

[attachment deleted by admin]
Title: Re: SDL2 + X-55 Rhino = Weirdness
Post by: m!m on July 25, 2016, 04:02:42 am
There have been a few bugs in SDL2 Joystick handling that were resolved by wxLauncher 0.11 so you were probably experiencing one of them.
Title: Re: SDL2 + X-55 Rhino = Weirdness
Post by: Cobra on July 25, 2016, 04:05:56 am
Yeah, this is what I get for not frequenting HLP as much as I used to. :P

Though I do have a question... does FreeSpace with SDL2 support more than 32 buttons?
Title: Re: SDL2 + X-55 Rhino = Weirdness
Post by: z64555 on July 25, 2016, 02:15:51 pm
No, not currently, it's on my TODO list.  :banghead:
Title: Re: SDL2 + X-55 Rhino = Weirdness
Post by: LaineyBugsDaddy on July 26, 2016, 08:56:16 am
Hopefully it will be done because we get wxFRED working and you're moving on to more items on the list, but the way things go around here, it's more likely it will get worked on because you're tired of banging your head against the wxFRED wall. LOL