1#ifndef DTTR_CONFIG_INTERNAL_H
2#define DTTR_CONFIG_INTERNAL_H
25#define CONFIG_GAMEPAD_AXIS_FIELDS(X) \
26 X("axis_stick_x", DTTR_GAMEPAD_AXIS_IDX_STICK_X) \
27 X("axis_stick_y", DTTR_GAMEPAD_AXIS_IDX_STICK_Y) \
28 X("axis_camera_rz", DTTR_GAMEPAD_AXIS_IDX_CAMERA_RZ)
30#define CONFIG_GAMEPAD_DEADZONE_FIELDS(X) \
31 X("deadzone_stick_x", DTTR_GAMEPAD_AXIS_IDX_STICK_X) \
32 X("deadzone_stick_y", DTTR_GAMEPAD_AXIS_IDX_STICK_Y) \
33 X("deadzone_camera_rz", DTTR_GAMEPAD_AXIS_IDX_CAMERA_RZ)
36 return lhs == rhs || (lhs && rhs && strcmp(lhs, rhs) == 0);
const DTTR_PrimitiveType type
static void config_clear_button_map(int *map)
bool config_parse_float(const char *value, float *out_value)
bool config_parse_game_action(const char *value, int *out_value)
bool config_apply_entry(DTTR_Config *config, const char *section, const char *key, const char *value)
bool config_parse_string(const char *value, char *out_value, size_t out_size)
bool config_parse_scaling_fit(const char *value, DTTR_ScalingMode *out_value)
const char * config_format_graphics_api(DTTR_GraphicsApi api)
const char * config_format_vertex_precision(DTTR_VertexPrecision precision)
bool config_parse_scaling_method(const char *value, DTTR_ScalingMethod *out_value)
bool config_parse_present_filter(const char *value, SDL_GPUFilter *out_value)
const char * config_format_scaling_fit(DTTR_ScalingMode mode)
bool config_parse_minidump_type(const char *value, DTTR_MinidumpType *out_value)
void config_format_int(int value, char *buf, size_t buf_size)
bool config_parse_graphics_api(const char *value, DTTR_GraphicsApi *out_value)
bool config_parse_bool(const char *value, bool *out_value)
bool config_parse_int(const char *value, int *out_value)
const DTTR_ConfigFieldSpec * config_schema_find(const char *section, const char *key)
const char * config_format_minidump_type(DTTR_MinidumpType type)
@ CONFIG_VERTEX_PRECISION
const char * config_format_present_filter(SDL_GPUFilter filter)
const char * config_format_gamepad_axis(int axis)
const char * config_format_game_action(int action)
const char * config_format_gamepad_source(int source)
bool config_parse_log_level(const char *value, int *out_value)
static bool config_sections_match(const char *lhs, const char *rhs)
bool config_parse_vertex_precision(const char *value, DTTR_VertexPrecision *out_value)
bool config_parse_gamepad_axis(const char *value, int *out_value)
void config_format_float(float value, char *buf, size_t buf_size)
bool config_parse_gamepad_source(const char *value, int *out_value)
const char * config_format_scaling_method(DTTR_ScalingMethod method)
const char * config_format_log_level(int level)
@ DTTR_CONFIG_VALUE_FLOAT
@ DTTR_CONFIG_VALUE_VERTEX_PRECISION
@ DTTR_CONFIG_VALUE_GAMEPAD_AXIS
@ DTTR_CONFIG_VALUE_PRESENT_FILTER
@ DTTR_CONFIG_VALUE_MINIDUMP_TYPE
@ DTTR_CONFIG_VALUE_STRING
@ DTTR_CONFIG_VALUE_LOG_LEVEL
@ DTTR_CONFIG_VALUE_GRAPHICS_API
@ DTTR_CONFIG_VALUE_SCALING_FIT
@ DTTR_CONFIG_VALUE_SCALING_METHOD
#define DTTR_GAMEPAD_SOURCE_COUNT
#define DTTR_GAMEPAD_MAPPING_NONE
static game_data_source source