icemann on 6/1/2019 at 03:20
Thank you for your feedback. Will definitely take the advice on board.
I'm currently working on fixes for joystick / gamepad issues with the game. Apparently xbox controllers dont work with it, and its been reported that if you unplug your gamepad during play then it wont work if plugged back in, unless the game is restarted.
Another is that the Steam Overlay is not present. Normally this is added automatically to a game on Steam, unless its running in software mode. Annoyingly due to bugs in SDL 2's video modes I was forced to have it run in software rather than hardware accelerated mode due to this. Otherwise if I left it in, the game would crash on occasion when switching from fullscreen to windowed. Not sure what to do there.
icemann on 8/1/2019 at 15:25
Programming is often a mix of:
* Enjoyment in implementing new things
* Long hours of coding
* Frustration in things not working as you'd expect them to
* Satisfaction of working out the source of those things not working.
Tonight I sat down to implement multi-controller support.
The night before I spent some time getting my ps3 controller to work with my PC. That took AGES. Once I had that done, tested CrossTrix with it. At first it appeared to not work at all. Then discovered that it was due to me already having another controller plugged in. Also fixed up hardware mode. And uploaded the new version to Steam. So if you go to play it now you'll get the Steam overlay appearing as expected.
So tonight set to work on getting 2 controllers working simultaneous. What I at first thought would be a quick thing to implement ended up taking many hours. No matter what I tried the second controllers button presses would be detected but not any axis or direction pad stuff. In the end it was all down to one line of code, which I'd not noticed as much of the controller code was ported over from a SDL2 tutorial. Turns out that for the axis / direction pad stuff it was only checking controller 1 for it. Removal of that line and suddenly both worked flawlessly. The joys of programming. A good learning experience with SDL2 either way.