Repository navigation
Up to 8 players, alongside the controllers already on your PC. Got 3 Xbox controllers plugged in and 3 friends with phones? Everyone plays.
Get it
- Windows: download
OpenWebController.exebelow and double-click it. Install the ViGEmBus driver once. The exe isn't signed, so SmartScreen may warn you: choose More info → Run anyway. - Linux or Windows from source: run
scripts/start.shorscripts\start-windows.bat. - pipx:
pipx install git+https://github.com/ToTt0G/open-web-controller, then runowc.
Which games see which controllers
On Windows the first virtual pads are Xbox 360 pads. Windows' Xbox controller API only sees 4 controllers in total, counting the ones plugged into the PC. Extra phones become PlayStation-style pads automatically. Steam (with Steam Input for PlayStation controllers), SDL-based games and most emulators see all of them, while older Xbox-only games see 4. Linux supports 8 Xbox-style pads with no cap. More in the README.
Eight players, and phones that play next to the controllers already plugged into the PC.
Added
- Up to eight phone players, up from four.
--max-players(envOWC_MAX_PLAYERS) sets the number of slots, from 1 to 8. - PlayStation-style pads on Windows. Windows' Xbox controller API (XInput) only sees four controllers in total. Once those four are taken, the next phone becomes a virtual DualShock 4 instead of an Xbox 360 pad, so it stays visible. Steam (with PlayStation controller support turned on), SDL-based games and most emulators see every pad. Games that only speak XInput still see four. Rumble works on both pad types.
--pad-type auto|xbox|ds4(envOWC_PAD_TYPE) to force one kind of pad on Windows. The default,auto, picks per phone as described above.- Controllers on the PC are counted. The server detects controllers plugged into the host (Xbox-type controllers through XInput on Windows, gamepads through evdev on Linux). On Windows they take up Xbox slots, so phones switch to PlayStation-style pads that much sooner.
--pc-controllers N(envOWC_PC_CONTROLLERS) overrides the detected number. - Lobby and phone show player numbers from the server. PC controllers appear first in the lobby as "PC" tiles and phones are usually numbered after them, so with three controllers on the PC the first phone is player 4. On Windows an Xbox pad shows the number Windows gave it, which is what Xbox-controller games use; for PlayStation-style pads and on Linux the number is a best guess. A phone keeps its number while it stays on its slot, even when a PC controller comes or goes. PlayStation-style pads carry a small "PS" mark.
- Eight player colours, one per slot.
- Protocol: new
host_infoevent with the player limit, the PC controllers (0 to 8), the pad type and the player number (display) of every slot.controller_assignednow includespad_typeanddisplay, and/statusreports the same fields. Seedocs/protocol.md. - README sections "Mixing PC controllers and phones" and "Game compatibility", with a worked example.
Changed
- Linux creates up to eight Xbox-style pads, with no cap from the system.
- Player numbers in the lobby and on the phone now count PC controllers first. Slot numbers in the protocol are unchanged.
- Moving to another slot in Settings unplugs the old Xbox pad before the new one is made, so the phone keeps an Xbox pad and its Xbox slot instead of turning into a PlayStation-style pad.
- Invalid
OWC_PAD_TYPE,OWC_MAX_PLAYERSorOWC_PC_CONTROLLERSvalues now stop the server with a clear message instead of being ignored or falling back to demo mode. - Linux no longer counts Steam Input's virtual gamepads as controllers on the PC.
- The slot picker in the phone's settings shows eight slots.
Full changelog: v2.0.0...v2.1.0 · PR #5 · Backlog: #2 #3 #4
