#include "jgame.h" #include "jdraw.h" #include "jinput.h" #include "jaudio.h" #include namespace game { static int param_count = 0; static char **params = nullptr; static bool should_exit = false; static unsigned int ticks_per_frame = 1000/60; void setUpdateTicks(const int ticks) { ticks_per_frame = ticks; } void exit() { should_exit = true; } const char* getParams(const int index) { if (index= game::ticks_per_frame) { current_ticks = SDL_GetTicks(); if (!game::loop()) game::should_exit = true; input::updateKey(SDL_SCANCODE_UNKNOWN); input::updateKeypressed(SDL_SCANCODE_UNKNOWN); input::updateClk(0); input::updateWheel(0); input::updatePadBtn(SDL_CONTROLLER_BUTTON_INVALID); input::updatePadBtnPressed(SDL_CONTROLLER_BUTTON_INVALID); } } audio::quit(); draw::quit(); return 0; }