fix gamepad button configuration

I swapped some setMapping(Mapping, InputClass) to setMapping(InputClass, Mapping) as it is something like a set(key, value)

#507