New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved joystick handling for Game OSD #12366
Conversation
17d09ae
to
72e2792
Compare
168d4b2
to
95788be
Compare
I've rebased on top of #12365. I've also added three commits to fix a crash-on-exit bug that I observed. The problem was due (yet again) to the order of deinitialization. To fix this, I:
I used the |
This moves the rumble generator from the default controller to the peripheral.
* | ||
* \param keyName The key name | ||
* \param keyNames The key names |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
system/keymaps/joystick.xml
Outdated
<!-- Buttons can be also require hotkeys to be pressed: --> | ||
<!-- <joystick profile="game.controller.default"> --> | ||
<!-- <start hotkey="back">Stop</start> --> | ||
<!-- </jotstick> --> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
From the whole looks your work very good, but have not direct experience with them to give more, Sorry. But thanks a lot for this work :-) . To have the Joystick working helps a lot. |
04c445b
to
b049f7d
Compare
jenkins build this please |
9dbcabc
to
41bb746
Compare
grr missing includes. jenkins build this please |
jenkins build and merge |
Have not tested but there is a label "No-Jenkins", maybe this can prevent auto builds. |
if auto jenkins fails the manual kicked one will also fail. |
This causes a crash on boot error:
I've bisected and "Move CInputManager into service manager" causes the crash. |
thanks for the report, I'll check it out and push a fix |
@popcornmix can you try #12426? |
I applied this label to #12367, force-pushed, then removed this label. Now, 5 minutes later, I can't trigger a build. @MartijnKaijser is there any way to make jenkins forget that it saw this label? EDIT: Ah, jenkins is being restarted. NVM. |
I am using Kodi via LibreELEC on Celeron Chomebox. Ever since Milhouse build LibreELEC-Generic.x86_64-9.0-Milhouse-20170705211737-#705-g0ab0d73.tar which included PR:12366 and PR:12367 I get a black screen and "crashes". https://forum.kodi.tv/showthread.php?tid=298462&pid=2613326#pid2613326 I have attached the debug log here: Mihouse mentioned it was most likely the joystick mapper and asked me to remove my joystick but I have nothing connected to my Chromebox. Is there anything I can do to assist in testing a correct fix for this as I have been frozen on the 2017-07-04 build and cannot upgrade beyond that without causing the same error. |
I tried the most recent build from LibreELEC-Generic.x86_64-9.0-Milhouse-20170802210357-#802-g072425f.tar with the same behavior. My crashlog is located at http://sprunge.us/SKQO |
I found a spot in the code that will crash if a button in joystick.xml has no action. Can you upload your joystick.xml? I'll open a PR for Milhouse to include to see if this spot is the problem. |
Where is the joystick.xml file located? I see a Joystick.AppleRemote.xml under /storage/.kodi/userdata/keymaps/ EDIT: Also, a reminder, I don't actually have a joystick attached. |
Now the gears click into place :) |
Good news! I deleted the Joystick.AppleRemote.xml I had in that folder as I saw none of these files on my Raspberry Pis and the Chromebox was updated to 03 August build without a crash. It had to do with that erroneous file I had in there from who knows where. If you need me to test after the PR is resolved I will put that file back in and let you know how it goes. Thanks for all your help with this. |
Awesome, try putting the xml file back once #12626 is included to verify that there's no more problems |
with the new change, not only does it not crash, but joystick.AppleRemote.xml is completely ignored. thanks for reporting, i'll merge the PR |
This PR is the second part of #12367. It introduces a new system for handling Kodi input in and out of games. It introduces the ability to specify combos in joystick.xml. It also specializes the use of the
<FullscreenGame>
tag in joystick.xml so that game combos can be used from within the in-game menu.Description
See the intro from the new joystick.xml:
Requires (and builds upon) the improvements made in #12365.
How Has This Been Tested?
Tested controller input in and out of games.