Skip to content

Commit

Permalink
Merge pull request #235 from DCurrent/input-rework-rebased
Browse files Browse the repository at this point in the history
Completely reworks the input system. The platform-specific control code for SDL and Wii has been completely rewritten. Input devices are now assigned to individual players, controller hotplugging is handled gracefully, and it is easy to reassign which player uses which device. This should fix most of the control issues people have traditionally had with OpenBOR. The days of OpenBOR treating all input devices like pieces of a giant imaginary keyboard are over!

The new input subsystem works very well on Windows/Linux. I haven't been able to test controller support on Android, but these changes at least don't break the regular touch-based input system. The Wii implementation is in worse shape; it is still incomplete and buggy, and will need someone to improve it in the future.
  • Loading branch information
Plombo committed Jul 19, 2021
2 parents 3b76de4 + fc1a4ae commit 3caaddd
Show file tree
Hide file tree
Showing 13 changed files with 1,892 additions and 2,158 deletions.
3 changes: 1 addition & 2 deletions engine/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,7 @@ endif


ifdef BUILD_SDL_IO
GAME_CONSOLE += sdl/joysticks.o \
sdl/control.o \
GAME_CONSOLE += sdl/control.o \
sdl/sblaster.o \
sdl/timer.o \
sdl/sdlport.o \
Expand Down
Loading

0 comments on commit 3caaddd

Please sign in to comment.