Code Monkey home page Code Monkey logo

evdev-joystick-xboxdrv's Introduction

evdev-joystick-xboxdrv

Easy and simple tool to generate a xboxdrv config.

Wait for 3 seconds and press any button to skip the mapping in case the controller doesn't support the button (like thumb buttons on Nintendo Wii Classic Controller)

Press any button during analogs mapping to skip if the controller doesn't have em.

install

$ sudo apt install python3-pip git -y
$ sudo pip3 install git+https://github.com/Virusmater/evdev-joystick-xboxdrv

example

$ evdev-joystick-xboxdrv 
Available devices:
0 Nintendo Wii Remote Pro Controller
Pick one device for the mapping: 0
press button Start (start) or wait 3 sec. and press any button to skip
BTN_START
press button Guide (xbox) or wait 3 sec. and press any button to skip
BTN_MODE
press button Back (select) or wait 3 sec. and press any button to skip
BTN_SELECT
press button A (south) or wait 3 sec. and press any button to skip
BTN_A
press button B (east) or wait 3 sec. and press any button to skip
BTN_B
press button X (west) or wait 3 sec. and press any button to skip
BTN_WEST
press button Y (north) or wait 3 sec. and press any button to skip
BTN_NORTH
press button LB (left bumper) or wait 3 sec. and press any button to skip
BTN_TL
press button RB (right bumper) or wait 3 sec. and press any button to skip
BTN_TR
press button LT (left trigger) or wait 3 sec. and press any button to skip
BTN_TL2
press button RT (right trigger) or wait 3 sec. and press any button to skip
BTN_TR2
press button TL (thumb left) or wait 3 sec. and press any button to skip
BTN_THUMBL
press button TR (thumb right) or wait 3 sec. and press any button to skip
BTN_THUMBR
press button DPAD_UP (up) or wait 3 sec. and press any button to skip
BTN_DPAD_UP
press button DPAD_DOWN (down) or wait 3 sec. and press any button to skip
BTN_DPAD_DOWN
press button DPAD_LEFT (left) or wait 3 sec. and press any button to skip
BTN_DPAD_LEFT
press button DPAD_RIGHT (right) or wait 3 sec. and press any button to skip
BTN_DPAD_RIGHT
tilt left X1 (left stick horizontal) and hold for 3 sec. or press any button to skip
ABS_X
release axe X1
tilt down Y1 (left stick vertical) and hold for 3 sec. or press any button to skip
ABS_Y
release axe Y1
tilt left X2 (right stick horizontal) and hold for 3 sec. or press any button to skip
ABS_RX
release axe X2
tilt down Y2 (right stick vertical) and hold for 3 sec. or press any button to skip
ABS_RY
release axe Y2
Configuration for Nintendo Wii Remote Pro Controller was saved at /home/kompot/.config/evdev_joystick_xboxdrv/NintendoWiiRemoteProController.ini

use

$ xboxdrv --evdev /dev/input/event21  --mimic-xpad --config /home/user/.config/evdev-joystick-xboxdrv/NintendoWiiRemoteProController.ini

evdev-joystick-xboxdrv's People

Contributors

virusmater avatar

Watchers

 avatar

evdev-joystick-xboxdrv's Issues

module not found error

Traceback (most recent call last):
  File "/home/kodi/.local/bin/evdev-joystick-xboxdrv", line 5, in <module>
    from evdev_joystick_xboxdrv.__main__ import main
ModuleNotFoundError: No module named 'evdev_joystick_xboxdrv'

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.