Enjoy! :) https://www.b4x.com/android/forum/threads/generic-gamepad-support-source-code.53518/#post-335558