Adrian Conlon
7fcf123248
For consistency with CS code, move to an event driven SDL3 model. (Probably part 1)
2026-08-26 13:50:36 +01:00
Adrian Conlon
3a64cc74d1
Gamepad/joystick porting to SDL3
2026-08-24 07:51:54 +01:00
Adrian Conlon
6dd115db64
Tidy error handling a little
2026-08-21 23:09:45 +01:00
Adrian Conlon
24a28db043
Port from SDL2 -> SDL3
...
First stab, very choppy sound
2026-08-21 22:34:24 +01:00
Adrian Conlon
74fdefba05
Try to fix lots of timing issues. *still* got too many cycles per frame though. Arghhh!
2026-08-17 11:59:53 +01:00
Adrian Conlon
8e0092ec9d
Tidy up noexcept specification
2022-01-17 19:10:15 +00:00
Adrian Conlon
e7d3c2ecb7
Use C++17 nodiscard attribute a little in the Game library
2021-12-08 19:46:19 +00:00
Adrian Conlon
6bf28f1480
Correct some virtual and constexpr expressions.
...
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com >
2021-08-23 09:44:48 +01:00
Adrian Conlon
22506ea56c
Extensive change warning: lots of "noexcept" and "constexpr" changes. Not sure if I'll keep all of them, but interesting...
...
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com >
2021-07-18 14:28:40 +01:00
Adrian Conlon
2fa9ffd1e3
Tidy up some C++ a little
...
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com >
2021-04-07 21:36:09 +01:00
Adrian Conlon
1663c7caf3
Refactor the "Game" class a little to allow future refactoring.
...
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com >
2020-05-03 20:55:58 +01:00
Adrian Conlon
89fae1cb6f
Tidy the Gaming library a little:
...
*) Add an SDLWrapper class to control the lifetime of SDL_Init/SDL_Quit
*) Pass FPS as a float, rather than int
*) Allow the key and button handlers to show whether an event was handled or not
*) Add a full screen render option (F12)
*) Use smart pointers in the GameController class
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com >
2019-10-01 23:54:48 +01:00
Adrian Conlon
1577455a67
Add support for joystick controller pads (especially DPad)
...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com >
2019-09-29 19:12:09 +01:00
Adrian Conlon
74ab3d0f01
Split CPU raster display time from vertical blank time.
...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com >
2019-09-29 01:46:56 +01:00
Adrian Conlon
7a6e0eafcd
Modifications to allow gaming class to be used with Space Invaders emulator
...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com >
2019-09-29 00:27:45 +01:00
Adrian Conlon
4afe6b6378
For convenience, add a very lightweight SDL wrapper to the EightBit library.
...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com >
2019-09-28 14:29:44 +01:00