Do we need root access?
If we cannot use custom mapping then this app will be only available to rooted users, because there is no way to report different input buttons to whole system without root. There are some unofficial workaround using Accessibility framework, but that will also be crippled Android 13 onward.
Do you think it would be possible to implement a keyboard IME in order to map inputs across the entire system by having users change their IME keyboard in settings? This could let us maybe send keystrokes and implement onscreen keyboard using the pads. I'm no android dev but on the surface it seems possible.