Hello all!
I come to you today with my barebones knowledge with something small and hacky but hopefully interesting to some; customizable strafe controls in core-Wolf4SDL. The idea is to bring another optional extra feature to the code that will hopefully open mods/Wolf4SDL in general to more people, particularly an audience that might prefer familiar control schemes.
Instead of having options for the joystick, I've set it up to have options to rebind the strafe left and right buttons, as well as the next and previous weapon buttons (Though those could be changed to something else, I just didn't want to waste space).
You can also specifically disable mouse movement in the menu, so that it only controls turning.
In the code itself, everything is behind a #define, so that if you want to keep the classic Joystick/Keyboard controls, that is an option.
Notes:
My code isn't 100% efficient and there is a lot I am not totally happy with, because I know it can be better but I personally lack the skillset. I'll be uploading the source shortly for people to mess with. I'll be posting further with one of the things I'm most unhappy with, but I welcome anyone to look at the code and come up with better solutions.
It would be much better if a more dynamic/better menu system were developed, but this tries to work within those current constraints.
I'd also be interested in how this changes level design for those that design around that control scheme, but that's more of a conceptual idea than anything else.
Download
For those interested in at least testing my changes, here's the [url=http://wolf3d.net/files/wolf4sdlwasd.zip]executable files (For use with the WL6 files of Wolf3D)[/url].
Edit: temporarily pulled because crashing issues.
Edit2: Reuploaded with fixes
I come to you today with my barebones knowledge with something small and hacky but hopefully interesting to some; customizable strafe controls in core-Wolf4SDL. The idea is to bring another optional extra feature to the code that will hopefully open mods/Wolf4SDL in general to more people, particularly an audience that might prefer familiar control schemes.
Instead of having options for the joystick, I've set it up to have options to rebind the strafe left and right buttons, as well as the next and previous weapon buttons (Though those could be changed to something else, I just didn't want to waste space).
You can also specifically disable mouse movement in the menu, so that it only controls turning.
In the code itself, everything is behind a #define, so that if you want to keep the classic Joystick/Keyboard controls, that is an option.
Notes:
My code isn't 100% efficient and there is a lot I am not totally happy with, because I know it can be better but I personally lack the skillset. I'll be uploading the source shortly for people to mess with. I'll be posting further with one of the things I'm most unhappy with, but I welcome anyone to look at the code and come up with better solutions.
It would be much better if a more dynamic/better menu system were developed, but this tries to work within those current constraints.
I'd also be interested in how this changes level design for those that design around that control scheme, but that's more of a conceptual idea than anything else.
Download
For those interested in at least testing my changes, here's the [url=http://wolf3d.net/files/wolf4sdlwasd.zip]executable files (For use with the WL6 files of Wolf3D)[/url].
Edit: temporarily pulled because crashing issues.
Edit2: Reuploaded with fixes