mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 12:35:42 +00:00
Games that read the controller through Steam Input (Valve's Steam Deck layouts with game actions, e.g. Left 4 Dead 2) got no input on DroidDeck-Bionic. Valve's Android libsteamclient keeps its named shared memory in a table inside the process, so the SteamController streams and the IPC object DroidDeck's Linux Steam publishes in /dev/shm never reached the game, and Android's libc has no sem_open, which the library's thread semaphores need (the game hung once the data arrived). libsteamshm.so (preloaded by the launcher) points the library's shared-memory open and unlink at DroidDeck's /dev/shm under Steam's uid, the way the Linux client opens them, and gives sem_open/sem_close a table of in-process semaphores. The two functions are found by code pattern when the library first asks for the uid; a library that does not match is left alone. DROIDDECK_BIONIC_STEAMSHM=0 turns the redirect off.