plugin.program.AEL.dev icon indicating copy to clipboard operation
plugin.program.AEL.dev copied to clipboard

[Feature Request] Disable Kodi Controller input during launch

Open zach-morris opened this issue 4 years ago • 1 comments

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"}')

zach-morris avatar Nov 20 '21 01:11 zach-morris

Thanks for posting this Zack. I will implement ASAP.

Wintermute0110 avatar Dec 17 '21 12:12 Wintermute0110