Set jumpers as follows:
- J4: Unset
- J5: 2-3
- J6: Unset
- J7: 1-2
- J8: 1-2 for EGA monitor, 2-3 for CGA/MDA monitor
bool kill_mode = // ... | |
bool back_pressed = false; | |
bool start_pressed = false; | |
SDL_Event event; | |
bool running = true; | |
while (running) { | |
if (!SDL_WaitEvent(&event)) { | |
printf("SDL_WaitEvent() failed: %s\n", SDL_GetError()); | |
return -1; |
# | |
# Cross Platform Makefile | |
# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X | |
# | |
# You will need SDL2 (http://www.libsdl.org): | |
# Linux: | |
# apt-get install libsdl2-dev | |
# Mac OS X: | |
# brew install sdl2 | |
# MSYS2: |
#include <QString> | |
#include <cmath> | |
namespace { | |
const QString ELLIPSIS("..."); | |
} | |
QString limitString(const QString& aString, int maxLength) { |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer