Skip to content
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

[Feature Request] Disable Kodi Controller input during launch #151

Open
zach-morris opened this issue Nov 20, 2021 · 1 comment
Open

[Feature Request] Disable Kodi Controller input during launch #151

zach-morris opened this issue Nov 20, 2021 · 1 comment

Comments

@zach-morris
Copy link

Also posted in the forums, but figured I'd open an issue too:
I'd like to request an advanced option for Disabling controllers when launching / then re-enabling them after the launched game is closed, similar to the option to disable Audio thats already present.

Reason:
For some reason, several windows games I play do NOT disable kodi input in the background (I think it depends on if the game is displayed windowed or not). I was playing Firewatch, and I could hear movie audio starting and stopping. Took me a while to figure out that my game inputs were being also input into Kodi in the background and causing all kinds of mayhem. Also happens on a few other games I have (Windows 10 PC playing mainly GOG games).

Note that I already do this in my addon, and it works just fine. You can disable Kodi controller input with:

xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Settings.SetSettingValue","params":{"setting":"input.enablejoystick","value":false},"id":"1"}')

And then re-enable it after return to kodi with:

xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Settings.SetSettingValue","params":{"setting":"input.enablejoystick","value":true},"id":"1"}')
@Wintermute0110
Copy link
Owner

Thanks for posting this Zack. I will implement ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants