Coder Social home page Coder Social logo

drc-sim-keyboard's Introduction

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

drc-sim-keyboard's People

Contributors

booto avatar delroth avatar justjake avatar shuffle2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

drc-sim-keyboard's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.