sdl2: add support for SDL_JOYHATMOTION
commitd5e77420916cb053d23f1ec828042a70d033c24a
authorrofl0r <rofl0r@users.noreply.github.com>
Sat, 28 Aug 2021 19:06:17 +0000 (28 19:06 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Sat, 28 Aug 2021 19:44:42 +0000 (28 19:44 +0000)
tree7d6ac8709fa016a81836a54ce5a3a71060d08666
parent93b5323dd736c5dac3d8fdc064dd839c8d4b1e59
sdl2: add support for SDL_JOYHATMOTION

for some reason, SDL2 detects digital pad on joypad as "hat".
added new framework to deal with axis events which is meant
to be adopted for joyaxis code too in a follow-up commit.
sys/sdl2/sdl2.c