Giter Site home page Giter Site logo

1bazbiz / yoke Goto Github PK

View Code? Open in Web Editor NEW

This project forked from headquarter8302/yoke

0.0 0.0 0.0 8.58 MB

Turns your Android device into a customizable gamepad for Windows/Mac/Linux

License: MIT License

Shell 0.88% JavaScript 40.85% Python 41.46% CSS 16.03% HTML 0.78%

yoke's Introduction

NOTE: The following instructions are for Yoke Classic, a stable version no longer in development, and available in Google Play and F-Droid

If you want a version with customizable layouts, try Yoke WebView. Yoke WebView is for the moment only available on GitHub.

Yoke Classic (desktop client)

Accelerometer

Yoke is a hackable Android gamepad for Linux (and Windows)

Get the Android app on F-Droid, Google Play or Github.

The Linux client can be installed with

# Requires Python 3.5+ which comes pre-installed in Ubuntu 16.04 and after.
pip3 install git+https://github.com/rmst/[email protected] --upgrade

On Linux to enable Yoke to create gamepad devices we need to add a udev rule

yoke-enable-uinput  # you can find that script in the "bin" directory

(This can be undone via yoke-disable-uinput)

On Windows Yoke needs the vJoy driver. The installer can be downloaded here.

Now you can run the client with

yoke

Your computer should then show up in the Yoke app immediately if you are on the same network.

Extras

To test Yoke on Linux you can install, e.g. jstest-gtk:

sudo apt install jstest-gtk
jstest-gtk  # to run

To use Yoke effectively with SDL-based games (e.g. all games using Unreal Engine or Unity3D), you can install the SDL gamepad tool. (If the package is not found, download the tool from the website.)

sudo apt install gamepadtool
gamepadtool   # to run

Multiple virtual devices on the same machine

Each yoke process creates one virtual device. To run multiple processes on the same machine make sure to give them different --id numbers (any integer greater than 0).

Security

The communication between the Linux client and the Android app are unencrypted UDP messages. You should therefore use it in networks you trust. However, if you are not in a trusted environment you can always create one via USB or Bluetooth. Just enable USB or Bluetooth tethering on your Android device and connect your Linux computer. This will create a mini-network for just your Phone and Computer and Yoke will work as usual.

Tweaking

Changing the controller mapping and behaviour of certain axes is very simple. Have a look at bin/yoke which is the Python script that is used for the yoke command.

If you want to modify more low level stuff that's also pretty easy. The Yoke linux client basically consists of a single Python file yoke/service.py.

Thumbstick

yoke's People

Contributors

medape avatar pzmarzly avatar rmst avatar jancborchardt avatar headquarter8302 avatar dithpri avatar

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.