Commit Graph

8 Commits

Author SHA1 Message Date
Adrian Conlon
dc91df1177 Some mild reformatting of the Gaming class.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-11-09 23:01:58 +00:00
Adrian Conlon
be79b5661f Update to latest SDL2 (2.10.0)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-10-12 23:15:47 +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
d8e4853971 Reorder the vertical blank raster lines a little to make it easier to use...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-29 11:36:17 +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