Skip to content
This repository was archived by the owner on May 26, 2021. It is now read-only.

racarla96/Simulate_XBox_Controller_Input_with_Python

Repository files navigation

Simulate XBox Controller Input with Python

Exist and easy alternative to do this! (https://pypi.org/project/vgamepad/)

Based on https://stackoverflow.com/questions/43483121/simulate-xbox-controller-input-with-python

Steps:

  1. Install vJoy and config (http://vjoystick.sourceforge.net/site/)

Configuration

  1. Create a project with PyCharm and install pyvJoy
  2. Test buttons ans joysticks in python terminal
  3. Open xbox360ce and config like see in image (You can load Gamepad_settings_Preset.txt which store this same config)
  4. You can find in Python/XboxPythonJoystickController a file KeyBoardJoystickMappingTool.py for a easy way to config gamepad with keyboard keys.

Configuration

Purpose:

Make some kind of control over a game from which we can obtain feedback information, either via OpenCV or because the game has some feedback over UDP. For example, the type of control can be with an AI or PID or predictive control.

Why not use vJoy directly?

Because XBOX Controller is highly compatible with a lot of game of PC.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages