-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add joy to keyboard button mapper #45
Conversation
Not sure yet, but it does only register 2 axis on my generic gamepad and when pressed they stay in that state even after release. Couldn't map buttons - I have read Here is my config:
|
BTW u can run |
Can you check the values from axis in jstest after press and release? |
Yes, the ranges are correct, but still the same issue on all axises. Buttons works correct after identyfing from input_info, so thanks for clarification. I'll try the xdotool package with https://github.com/wizlab-it/joymap and see if I can get different outcome. |
I was trying joymap with xdotool, not working at all. |
Success! Had to wiggle a bit settings until I found one suitable for my joystick:
This will be great for frontend and other apps without complex input configuration! GJ 👍 I need to rework GMenu2X to simplify executing apps in bg, now it's a pain to do from there. Additionaly joymap.sh or linkapp should treat $1 as mapping to make enduser pick between suitable configuration. |
I think one configuration for all will be fine, as it use product and vendor code. Like a base for all known gamepads. Can you share your config and the name of gamepad, so I will add it to the pr? |
Also if you add param |
…r to dynamically (during use) compute calibration value so that events are reported in the range -32767 to 32767
List of possible kbd button assigments, use name or number (if I only knew!):
|
maybe we could test if /dev/input/js0 exist, if not |
Linux Joystick Mapper app for mapping joy/gamepad buttons to miyoo keyboard keys.
Configuration:
Provide configuration to your gamepad in file
/mnt/joymap.map
(as default there is configuration for xbox gamepad)enter
id
orvendor
andproduct
from your gamepad (see/proc/bus/input/devices
) and provide correctsrc
numbers forbuttons
andaxis
hint: use
input_info /dev/input/event1 >>/mnt/input.log
then ctrl+c to discover the correct src numbers for buttons and axisDetailed configuration described in the attached config.pdf file
Usage: