#include #include #include #include #include #include #include #include "ctrl.h" #include "input.h" #include "fumotris.h" #include "term.h" #include "tetr.h" #include "event.h" #include "platform.h" void ErrorExit(char *message) { printf(message); exit(1); } int main() { if (!PlatformInit()) ErrorExit("Platform failed to initialize"); struct Controller ctrl; if (!CreateCtrl(&ctrl)) ErrorExit("Out of memory"); struct InputThreadHandle input; if (!BeginInputThread(&input, &ctrl.buf)) ErrorExit("Input handle failed to initialize"); printf("woah"); return 0; }