debug
This commit is contained in:
@@ -82,7 +82,7 @@ namespace globalInputs
|
||||
{
|
||||
servicePressedCounter[0]++;
|
||||
|
||||
if (servicePressedCounter[0] == 3000)
|
||||
if (servicePressedCounter[0] >= 3000)
|
||||
{
|
||||
OnScreenHelp::get()->toggleState();
|
||||
servicePressedCounter[0] = 0;
|
||||
@@ -121,7 +121,7 @@ namespace globalInputs
|
||||
{
|
||||
servicePressedCounter[i + 1]++;
|
||||
|
||||
if (servicePressedCounter[i + 1] == 3000)
|
||||
if (servicePressedCounter[i + 1] >= 3000)
|
||||
{
|
||||
OnScreenHelp::get()->toggleState();
|
||||
servicePressedCounter[i + 1] = 0;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include <vector>
|
||||
namespace globalInputs
|
||||
{
|
||||
extern std::vector<int> servicePressedCounter;
|
||||
|
||||
// Inicializa variables
|
||||
void init();
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "notify.h" // for Notify
|
||||
#include "options.h" // for options
|
||||
#include "on_screen_help.h"
|
||||
#include "global_inputs.h"
|
||||
|
||||
#ifndef NO_SHADERS
|
||||
#include "jail_shader.h" // for init, render
|
||||
@@ -67,7 +68,7 @@ Screen::Screen(SDL_Window *window, SDL_Renderer *renderer) : window(window), ren
|
||||
fpsCounter = 0;
|
||||
fps = 0;
|
||||
#ifdef DEBUG
|
||||
showInfo = false;
|
||||
showInfo = true;
|
||||
#else
|
||||
showInfo = false;
|
||||
#endif
|
||||
@@ -537,6 +538,8 @@ void Screen::displayInfo()
|
||||
|
||||
// Resolution
|
||||
dbg_print(0, 0, infoResolution.c_str(), 255, 255, 0);
|
||||
|
||||
dbg_print(0, 8, std::to_string(globalInputs::servicePressedCounter[0]).c_str(), 255, 255, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user