kodi-game / game.libretro

Libretro compatibility layer for the Kodi Game API
GNU General Public License v2.0
37 stars 26 forks source link

Fix off-by-one error #42

Closed garbear closed 6 years ago

garbear commented 6 years ago

This fixes an off-by-one error if an input event arrives for a controller that is not connected. This shouldn't be happening, as input events should only arrive for controllers that are connected. Still, better to be defensive.