Skip to content

justjake/drc-sim-keyboard

Repository files navigation

DRC Simulator

the controller viewer

Credits

I forked from https://bitbucket.org/memahaxx/drc-sim, which does all the hard DRC simulator work. all credit to the original authors.

@delroth_ was a huge help with connecting to the Wii U with wpa_supplicant.

@maxb found my gamepad's MAC address for me :).

Goals

keyboard and mouse control for Wii U. Support mouse for "touch" input on the gamepad screen as well while in CAPSLOCK or something.

Connect to the Wii U

  1. get an rt2800usb with 5ghz support.
  2. follow some of the steps described in this blog post to pair your box with a Wii U.
  3. Do the "Preparations" sectio n - If you need to prevent NetworkManager from screwing wit yo shizz, you can stick something like this in /etc/NetworkManager/NetworkManager.conf:
```
[keyfile]
unmanaged-devices=mac:<YOUR ADAPTER MAC Addr HERE>
```
  1. Skip the "mac80211 stack" section! That's for libdrc, not drc-sim.

  2. Do everything in the "Obtaining the key" step. - the two scripts in this repo can be useful with a bit of customization.

  3. Once you have obtained the PSK at the end of "obtaining the key", customize the EXAMPLE-connect-to-the-wiiu.conf with your Wii U's information. You need to fill in:

    • your BSSID
    • your PSK
    • your SSID (possibly)
  4. launch wpa_supplicant again using your new connect-to-wiiu.conf. After a bit you should see wpa_supplicant successfully connect and authenticate.

  5. run sudo dhclient $WLAN to get an IP address for your connection from the Wii U.

  6. To make switching between the Gamepad and your computer easier, you can set your wireless adapter's MAC address to be that of your Gamepad. I highly recommend doing this; reduces frustration with the connection process a lot. Make the edit in wpa_supplicant/start-wpa_supplicant.sh. You can narrow down the list of MAC addresses by scanning only 5ghz and looking for addresses prefixed with 18:2A which both my DRC and Wii U share.

When you're finished, you should see something like this: my hooray tweet

Set up simulator.py

Note that the new simulator has a controller viewer, but doesn't have video streaming yet! Mostly because I'm bad at programming.

  1. Read over install-requirements.sh and decide how you want to install everything. install-requirements.sh was written for Debian Jessie, but should also work just fine on Ubuntu systems.
  2. run ./install-requirements.sh
  3. set JOYSTICK = true in `simulator.py if you've got an Xbox 360 controller. Otherwise you're stuck with just a keyboard and mouse
  4. run simulator.py for mouse support. run drc-sim.py for video streaming.

software ideas

I want to have pluggable control schemes for quick reconfiguration. Control implements functions for all the Wii U's inputs. We'll read the nice public API and from that produce a packed InputData instance in binary.

Inspiration

My research starting point was this Reddit post

Resources

About

control your Wii U with keyboard, mouse, and Xbox 360 controller

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •