test/gamepads: work with dictionnaries, instead of list

Lists is so C, and it involves a lot of brain twists.
Surprisingly, relying on dict, like every good python programmer should,
is actually much simpler to understand and extend.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
3 jobs for master in 2 minutes and 8 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #781275
flake

00:01:35

passed #781276
install

00:01:50

passed #781277
install_no_man_pages

00:01:55