Added csv_to_array tool
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user