dolphin-emu/dolphin — pull request #279 by Sonicadvance1 (2014-04-16 04:03:30+00:00)
Title: Don't use SDL devices that report invalid ranges.

If Buttons, Axes, Hats, or Balls > 255 then reject it.