From cfb0d88975a393fe231931efc3de99f16c3974b3 Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Mon, 27 Jul 2015 21:25:14 +0200 Subject: [PATCH] Updated Input Options (markdown) --- Input-Options.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Input-Options.md b/Input-Options.md index ef445f5..5718790 100644 --- a/Input-Options.md +++ b/Input-Options.md @@ -20,6 +20,8 @@ The ports which can be used in XQEMU are: The XID is usually connected to Port 2 of the XID-hub. So if you have a hub for Player 1 at `bus=usb-bus.0,port=3`, your gamepad-device would connect to `bus=usb-bus.0,port=3.2`. +To connect multiple gamepads you can simply specify multiple `-device`. + ## Emulated XID There is XID emulation in XQEMU which emulates a very basic Duke Xbox Controller [VID: 0x045e, PID: 0x0202]. @@ -45,7 +47,9 @@ To recreate the internal XID hub we use the existing QEMU "usb-hub" device. The actual XID emulation is provided by the "xbox-gamepad" device. **Example:** -```-usb -device usb-hub,bus=usb-bus.0,port=3 -device usb-xbox-gamepad,bus=usb-bus.0,port=3.2``` +``` +-usb -device usb-hub,bus=usb-bus.0,port=3 -device usb-xbox-gamepad,bus=usb-bus.0,port=3.2 +``` ## USB Forwarding @@ -77,14 +81,18 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="0289", GROUP="use To forward the entire hub of the controller we simply have to forward the hub to the emulated xbox. **Example:** -```-usb -device usb-host,bus=usb-bus.0,port=3,vendorid=0x45e,productid=0x288``` +``` +-usb -device usb-host,bus=usb-bus.0,port=3,vendorid=0x45e,productid=0x288 +``` ### Gamepad-Forwarding For Gamepad forwarding we create a virtual hub using QEMU and connect the XID gamepad device to port 2 of the emulated hub. **Example:** -```-usb -device usb-hub,bus=usb-bus.0,port=3 -device usb-host,vendorid=0x45e,productid=0x289,bus=usb-bus.0,port=3.2``` +``` +-usb -device usb-hub,bus=usb-bus.0,port=3 -device usb-host,vendorid=0x45e,productid=0x289,bus=usb-bus.0,port=3.2 +``` # Contribute