factor out SDL2 joystick code and use it from both SDL1/SDL2
commitb0562a0b3b7cc667cb1f05a7192e17fdc1ed4496
authorrofl0r <rofl0r@users.noreply.github.com>
Sat, 28 Aug 2021 23:44:20 +0000 (28 23:44 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Sat, 28 Aug 2021 23:44:20 +0000 (28 23:44 +0000)
treedee84f5860a6352e7b4a7280c8d00331a87fd4a7
parent78f6644b2a019e9e78dfc0cb5d6cb1aacb00a63a
factor out SDL2 joystick code and use it from both SDL1/SDL2

the code works identically on both SDL versions (apart from different
header - and potentially ABI) - so let's use it from both sites
to avoid code duplication.
additionally this gives us free "joyhat" support in the SDL1
backend, which lacked it previously.
Makefile.in
sys/sdl/sdl-joystick.c [new file with mode: 0644]
sys/sdl/sdl.c
sys/sdl2/sdl-joystick.c [new file with mode: 0644]
sys/sdl2/sdl2.c