Skip to content

Allow binding dpads implemented as 2 axes

Alice Mikhaylenko requested to merge wip/exalm/dpad into master

A hacky attempt to fix #16 (closed)

This specifically only allows mapping dpad as 2 axes, and not any buttons, so that it doesn't break Xbox controllers that map full axes to triggers:

 ~/Projects/libmanette/src  grep "\w+:a" -Po gamecontrollerdb | sort | uniq
dpdown:a
dpleft:a
dpright:a
dpup:a
leftstick:a
lefttrigger:a
leftx:a
lefty:a
rightstick:a
righttrigger:a
rightx:a
righty:a

@theawless would it be better to map any buttons except triggers as half axes instead?

Depends on https://gitlab.gnome.org/aplazas/libmanette/merge_requests/8

Edited by Alice Mikhaylenko

Merge request reports