Published on 2015-05-25
Samsung gamepad mappings for unity
When programming with/for the Unity Engine, there does not seem to be a way to get a list of all pressed buttons for a gamepad or joystick. Thus, to find out what button matches what descriptor, one has to test joystick button 0 to joystick button n to find out what buttons are currently pressed - the same goes for axes. Most annoying of all, Inputs have to be specified before compiling - so compile, deploy, test and repeat!
Because I have not found an button overview for the new Samsung gamepad for Android (exact model EI-GP20), I created a infographics for buttons and axes mapping when using Unity. It should be the same for all devices, but I only tested it with a Galaxy Note 4.