[gens-sdl] gens-sdl.cpp: Implemented auto-pause. feature/gens-sdl-autoPause github/feature/gens-sdl-autoPause
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 02:53:18 +0000 (22:53 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 02:53:18 +0000 (22:53 -0400)
commit46dc736f2f5c7ff4ae81482d4803deb285976851
treed3ae8bd807243b753e0766682c0470fbd64f5971
parentdaf944053fdec8e11b65a80159f6afedb0120dd9
[gens-sdl] gens-sdl.cpp: Implemented auto-pause.

Similar to the gens-qt4 implementation, I changed the 'paused' variable
to a struct containing a union of a bitfield and a uint8_t. This allows
us to easily set or unset both the "manual" and "auto" (called "focus"
because "auto" is a C keyword) paused bits, and to check if any of them
are set.

TODO: Write a popt-based command line parser with a struct containing
all of the options.
src/gens-sdl/gens-sdl.cpp