Giter Club home page Giter Club logo

stadiacontroller-ahk's Introduction

Stadia Controller Autohotkey

Support for using the Stadia Controller as an Xbox 360 controller on Windows with the addition of AutoHotkey scripting.

The Original stadiacontroller program was made by Grégoire Geis (71).

Features

  • All buttons are mapped to their Xbox 360 equivalents.
  • Triggers are analog.
  • The Assistant and Capture buttons can be remapped to run any AutoHotkey v2 code (see usage for more details).
  • Vibrations are supported.
  • Emulation via ViGEm (must be installed), which means that everything just works. There won't be pesky Denuvo games that refuse to accept that input.

Installation

  1. Install ViGEm.
  2. Download the latest release.
  3. Extract the zip into a directory.

Usage

Running the program

After installation of ViGEm run stadiacontroller.exe and the sound of a device being plugged in should be heard.

Now a connected Google Stadia controller can be used as an Xbox 360 controller.

Remapping extra buttons

The Assistant and Capture buttons can be remapped in stadiacontroller.ahk using the AutoHotkey v2 scripting language. Any code inside the functions Assistant, AssistantUp, Capture and CaptureUp will be run according to the button pressed.

A simple button to keyboard key remap can be achieved as follows

Capture() {
    Send "{PrintScreen}"
}

The script can only be reloaded by restarting stadiacontroller.exe.
If any of the four functions are missing in the script they will just be ignored.
In the default script there are console outputs defined according to the button presses.

Any arbitrary AutoHotkey v2 code defined in stadiacontroller.ahk should be able to run, so there are more possiblities than this simple button to keyboard remap.
For more information see the AutoHotkey v2 documentation. It is important to always reference the documentation for AutoHotkey version 2, as there are pretty big differences from version 1.

Alternatives

  • Original stadiacontroller has all the same functionality, but with Windows command support instead of AutoHotkey.
  • XOutput does not support vibrations, analog triggers and additional buttons, but it has more features and is more stable overall.

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.