sc-controller icon indicating copy to clipboard operation
sc-controller copied to clipboard

Deck and first connected controller should share OSD

Open pattontim opened this issue 1 year ago • 2 comments

When running on the Deck, the Deck is always detected first while attached controllers are detected second. The consequence is that the operation of any OSD is not possible with the second controller even if the Deck is docked for example. In this state when you open the keyboard with the attached controller, it is not possible to type on the OSK or dismiss it.

Proposal 1: share OSD menus among all controllers until...

Proposal 2: OSDs can be opened independently for each controller (potentially on different sides of the screen)

pattontim avatar Oct 20 '22 17:10 pattontim

Alright so the issue is related to which controller is assigned the default mapper. If I start scc-daemon with SC plugged in first, then keyboard works only on the SC. If I unplug the SC the mapper is assigned to, default mapper goes to the Deck and works there. But if I plug in sc after deck has mapper the OSK doesn't work

pattontim avatar Oct 21 '22 12:10 pattontim

On the c version, priv->controller_id is the culprit, since it's null then the osd client associated with the keyboard simply returns the first controller.

pattontim avatar May 07 '23 13:05 pattontim