ash3rz / flexx_gamepad

A Flexx app that displays what buttons are currently pressed on a connected gamepad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flexx Gamepad

A gamepad visualizer written in Python with Flexx and Pygame with assets from e7d's visualizer.

Most gamepad visualizers work by reading inputs directly from the browser. This comes with the requirement that the gamepad be connected to the same device you want the visualizer to display on.

The purpose of this project is to enable users to connect their gamepad to any device and display the visualizer on a separate device, as long as the two devices are accessible to each other.

Supported Controllers

  • PlayStation DS4

Supported Operating Systems

  • Linux
  • MacOS
  • Windows

Installation

You must have Python 3.5+. Flexx has a known issue with Python 3.9 however.

$ pip install -r requirements.txt

Running flexx_gamepad

NOTE: Depending on your OS, you may encounter an error regarding missing dependencies for pygame. Please refer to their dependency docs.

$ python3 server.py

Serving apps at http://0.0.0.0:3000

Open your local browser to http://0.0.0.0:3000, or, if the gamepad is connected to a separate device, open your browser to http://IP_ADDRESS:3000 where IP_ADDRESS is the IP address of the separate device.

About

A Flexx app that displays what buttons are currently pressed on a connected gamepad

License:MIT License


Languages

Language:Python 100.0%