Added csv_to_array tool
Some checks failed
Build Dusk / run-tests (push) Failing after 1m41s
Build Dusk / build-linux (push) Failing after 1m26s
Build Dusk / build-psp (push) Failing after 1m46s

This commit is contained in:
2026-01-26 08:37:36 -06:00
parent 9c25fde548
commit 0392dd0e7f
12 changed files with 239 additions and 41 deletions

View File

@@ -8,18 +8,11 @@
#pragma once
#include "time/time.h"
typedef enum {
INPUT_ACTION_NULL,
INPUT_ACTION_UP,
INPUT_ACTION_DOWN,
INPUT_ACTION_LEFT,
INPUT_ACTION_RIGHT,
INPUT_ACTION_ACCEPT,
INPUT_ACTION_CANCEL,
INPUT_ACTION_RAGEQUIT,
INPUT_ACTION_COUNT
} inputaction_t;
#ifndef INPUT_CSV_GENERATED
#error "Input CSV has not been generated. Run dusk_input_csv in CMake."
#endif
#include "input/inputactiontype.h"
#include "input/inputactionname.h"
typedef struct {
inputaction_t action;
@@ -32,16 +25,6 @@ typedef struct {
#endif
} inputactiondata_t;
static const char_t* INPUT_ACTION_NAMES[INPUT_ACTION_COUNT] = {
[INPUT_ACTION_UP] = "UP",
[INPUT_ACTION_DOWN] = "DOWN",
[INPUT_ACTION_LEFT] = "LEFT",
[INPUT_ACTION_RIGHT] = "RIGHT",
[INPUT_ACTION_ACCEPT] = "ACCEPT",
[INPUT_ACTION_CANCEL] = "CANCEL",
[INPUT_ACTION_RAGEQUIT] = "RAGEQUIT",
};
/**
* Gets an input action by its name.
*