Binary package “python3-inputremapper” in ubuntu oracular

Input device button mapping tool (Python module)

 input-remapper allows users to map buttons on all input devices
 (keyboards, mice, gamepads...) in X11 and Wayland. It also supports
 combined buttons and programmable macros.
 .
 This package contains the Python module implementing the remapper.
 The Glib and Gtk dependencies are only required to use the
 inputremapper.gui module.