Fixes issues in mapping/unmapping joystick functions to OXP equipment#611
Fixes issues in mapping/unmapping joystick functions to OXP equipment#611
Conversation
|
Is this a Windows specific issue or general? How can this fix be tested eg. install an OXP with equipment (such as your https://wiki.alioth.net/index.php/GalCop_Missions) then do something in the debug console to add the equipment? |
|
It's not OS dependent. Before this fix, you couldn't map the Activate or Mode functions of OXP equipment (for instance, Fast Target Selector) to joystick buttons. When you try, nothing happens and you get an error in the log. With the patch, you should be able to go into Joystick configuration and successfully map the Activate or Mode functions of OXP equipment to any joystick button. |
|
Ok, I'll dig out my joystick and try tomorrow. |
|
No idea why GitHub decided to flag the entire file as changed, when I only changed a few lines. |
|
Maybe line endings have changed? I was hoping to run a quick test this morning but ran into a problem with my nVidia drivers refusing to load and attached monitor not being recognised that I've wasted a lot of time debugging. All is working now, but I need to catch up with my day job. |
|
If only line endings - or in other words whitespace changes you can ask various diff tools to ignore this. Github may be an exception, but e.g. WinMerge can. |
|
I can confirm this works apart from one thing - if you try unsetting a key when there's a joystick setting it still fails |
…here a joystick function also exists
|
Thanks @kanthoney, should be working now I think! |
|
I'm getting a crash if I set a joystick button to activate a feature, and then try and set a joystick button for the mode. Here's a backtrace, showing the crash is at By the way, there is a line endings problem, which is why the pull request is saying the whole file has changed. If you run the command that should fix the problem in the future. The |
|
I think the problem is the release in |
|
I tested and experienced a segmentation fault on exiting the game. The button setting worked though. @kanthoney 's suggested fix will likely resolve this crash which presumably has the same cause. |
|
Go for it, guys. I just pulled out my old MS Sidewinder and experienced way better combat handling than with the keyboard. Still need to improve myself though. I was not aware that putting my hand on the force feedback joystick is already registered as button press. But it shows to me how important good joystick support is. |
|
That commit was me. Just got mixed up with another github account. |
|
I've found another problem. Try the following sequence:
|
…d lose keyboard mappings on that equipment
|
Should I be doing something different to get all the automated builds to work? |
|
The Fedora failure should be fixed by merging master where I made a fix while doing the AnyLinux appimage changes. The windows failure is strange and needs investigation. |
|
I've had windows build failures also on the semver branch where I just tried to calculate a version number (no code change at all). Seems some connectivity is broken. |
|
Ah that's good to know. The Windows test failure is for me to look into then. |
|
I updated MSYS2 locally and hit the same problem. The test is actually working as it should. I cannot run Oolite itself outside the test - it gives a symbol error. I've kicked off a new build of Windows dependencies and will check tomorrow to see if that fixes it: https://github.com/OoliteProject/oolite_windeps_build/releases/tag/0.1.1 |
|
The latest commit fixes all the key/joystick mapping issues I can find |
|
The Windeps build failed for the same reason the Arch build used to fail: I think MSYS2 has moved to clang 22. I will update to latest GNUstep packages. |
|
In the meantime I tested on Linux and this PR works fine. If you've run it locally on Windows without issue, I'd say go ahead and release. No need to wait for my fix to Windeps. |
|
I was able to fix the Windows GNUstep build by adding I reran the Windows build of this PR on master and it now passes. I am unsure if this flag is a good long term solution. I have raised an issue with GNUstep Base: gnustep/libs-base#604 |
Fixes #610