Canviats defines per constexpr

This commit is contained in:
2025-02-21 12:27:03 +01:00
parent 788aec0dab
commit 134b679a75
17 changed files with 158 additions and 162 deletions

View File

@@ -6,6 +6,15 @@
#include <string> // for string, basic_string
#include <vector> // for vector
// Valores de repetición
constexpr bool REPEAT_TRUE = true;
constexpr bool REPEAT_FALSE = false;
// Métodos de entrada
constexpr int INPUT_USE_KEYBOARD = 0;
constexpr int INPUT_USE_GAMECONTROLLER = 1;
constexpr int INPUT_USE_ANY = 2;
enum inputs_e
{
// Inputs obligatorios
@@ -31,13 +40,6 @@ enum inputs_e
input_number_of_inputs
};
#define REPEAT_TRUE true
#define REPEAT_FALSE false
#define INPUT_USE_KEYBOARD 0
#define INPUT_USE_GAMECONTROLLER 1
#define INPUT_USE_ANY 2
enum i_disable_e
{
d_notDisabled,