From a15747db3cbaf1479842cbe91c2ced5a8263ea59 Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Wed, 29 Jul 2015 10:03:51 +0200 Subject: [PATCH] Updated Input Options (markdown) --- Input-Options.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Input-Options.md b/Input-Options.md index e115485..2e628c5 100644 --- a/Input-Options.md +++ b/Input-Options.md @@ -3,10 +3,10 @@ The Xbox uses so called Xbox Input Devices (XID). The hardware side is USB with a different plug while the software side is USB without HID-descriptors. Technicly a XID is a USB-hub for the Memory-Units and the XBL Communicator. -The XID Gamepad USB-Device is internally connected to that hub. +The XID gamepad USB device is internally connected to that hub. -To connect a device you must specify the driver for the emulated USB device and the port the device should connect to. -You also need to specify "-usb" on the command line to add usb functionality. +To connect a device to the virtual Xbox you must specify the driver for the emulated USB device and the port the device should connect to. +You also need to specify `-usb` on the command line to add usb functionality. The ports which can be used in XQEMU are: @@ -22,6 +22,8 @@ So if you have a hub for Player 1 at `bus=usb-bus.0,port=3`, your gamepad-device To connect multiple gamepads you can simply specify multiple `-device`. +To find out more about QEMU USB emulation you can read [the QEMU User Documentation](http://qemu.weilnetz.de/qemu-doc.html#pcsys_005fusb) (Note that XQEMU is based on QEMU 1.7 at this time while the Documentation is for the more recent QEMU 2.4.0+) + ## Emulated XID There is XID emulation in XQEMU which emulates a very basic Duke Xbox Controller [VID: 0x045e, PID: 0x0202]. @@ -67,7 +69,7 @@ To be able to forward any of the host devices you must take the following steps: 3. Find the VID:PID (Vendor and Product ID) of the XID-Hub and/or the internal Gamepad device 4. Make sure that libusb has the necessary permissions -\* Please do not destroy original Controllers. Instead buy a cheap break-away or extension cable. By cutting it in half you can create 2 USB Adapters: 1. USB to Xbox + 2. Xbox to USB. You can still use your adapters as an extension cable for most XIDs (not working with Lightguns). +\* Please do not destroy original controllers. Instead buy a cheap break-away or extension cable. By cutting it in half you can create 2 USB adapters: 1. USB to Xbox + 2. Xbox to USB. You can still use your adapters as an extension cable for most XIDs (not working with lightguns). On Linux you can use "lsusb" for step 2. Step 3 involves adding a udev rule on most linux distributions. The udev rule (/etc/udev/rules.d/999-xbox-gamepad.rules) for a Controller-S could look like this: @@ -97,4 +99,4 @@ For Gamepad forwarding we create a virtual hub using QEMU and connect the XID ga # Contribute If you are a developer you can also check out the [XID emulation source code](../blob/xbox/hw/xbox/xid.c). -You could write a new driver to turn connected Xbox 360 Gamepads into original Xbox XIDs for example. \ No newline at end of file +You could write a new driver to turn connected Xbox 360 gamepads into original Xbox XIDs for example. \ No newline at end of file