Files
dusk/src/input/inputaction.h
Dominic Masters 0392dd0e7f
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
Added csv_to_array tool
2026-01-26 08:37:36 -06:00

34 lines
775 B
C

/**
* Copyright (c) 2025 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "time/time.h"
#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;
float_t lastValue;
float_t currentValue;
#if TIME_FIXED == 0
float_t lastDynamicValue;
float_t currentDynamicValue;
#endif
} inputactiondata_t;
/**
* Gets an input action by its name.
*
* @param name The name of the input action.
* @return The input action, or INPUT_ACTION_COUNT if not found.
*/
inputaction_t inputActionGetByName(const char_t *name);