JosefNemec / Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
https://playnite.link
MIT License
9.5k stars 504 forks source link

Playnite interfere with gamebar #3845

Open ghost opened 1 month ago

ghost commented 1 month ago

Bug Description

Playnite captures gamepad input even if it isn't currently focused, making it unusable with gamebar

To Reproduce

  1. Open Playnite fullscreen
  2. Launch gamebar with the guide button

Diagnostics ID

ea04a981-b178-452c-9f54-b10a63688a87

Screenshots

https://github.com/user-attachments/assets/e30dee35-749f-45c5-9373-f5eb992afbe5

JosefNemec commented 1 month ago

We will probably need to add some explicit detection of GameBar being opened, because this means that GameBar is keeping Playnite itself focused and also doesn't prevent it from processing controller input.

ghost commented 1 month ago

But it doesn't happen with games or apps (made even before gamebar was a thing)

JosefNemec commented 1 month ago

I don't know how GameBar prevents games and app from processing input when GameBar is opened. All I can say that we are using industry standard library (SDL) to handle controller inputs so I don't think the issue is necessarily on our (or SDL's) side, but I might be wrong.

I currently don't have time to investigate this more because I have my hands full with Playnite 11. Somebody else will have to look into what's going on.