[gens-sdl] Split the emulation loop and "Crazy" Effect loop into separate files.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Thu, 3 Sep 2015 01:22:17 +0000 (21:22 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Thu, 3 Sep 2015 01:22:17 +0000 (21:22 -0400)
commit0ec538fccd840afded5be0b43400763b06eb0607
tree2091112992a4e081161099e088f6358bd1d4544e
parent5c99354cf16e1836ef04557f73d14edafe85618b
[gens-sdl] Split the emulation loop and "Crazy" Effect loop into separate files.

All of the functions are currently in the GensSdl namespace without
any enclosing classes.

EmuLoop.cpp has its own processSdlEvent_emuLoop() function to handle keys
that aren't needed for the "Crazy" Effect, e.g. savestates. If an event
isn't handled by EmuLoop, gens-sdl.cpp's processSdlEvent_common() will
try processing it. If that doesn't handle it, the key will be sent
to the KeyManager.

TODO: Convert EmuLoop and CrazyEffectLoop to classes with a common
base class.
src/gens-sdl/CMakeLists.txt
src/gens-sdl/CrazyEffectLoop.cpp [new file with mode: 0644]
src/gens-sdl/CrazyEffectLoop.hpp [new file with mode: 0644]
src/gens-sdl/EmuLoop.cpp [new file with mode: 0644]
src/gens-sdl/EmuLoop.hpp [new file with mode: 0644]
src/gens-sdl/gens-sdl.cpp
src/gens-sdl/gens-sdl.hpp [new file with mode: 0644]