|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include "gui_internal.h"Go to the source code of this file.
Data Structures | |
| struct | gamepad_axis_field |
Variables | |
| static const char *const | GAMEPAD_AXIS_TOOLTIPS [] |
| static const char * | TOOLTIP_GAMEPAD_ENABLED = "Enable controller input. Default: true." |
| static const char * | TOOLTIP_GAMEPAD_INDEX = "Controller index, starting at 0. Default: 0." |
| static const char * | TOOLTIP_GAMEPAD_AXIS |
| static const char * | TOOLTIP_GAMEPAD_DEADZONE |
| static const char * | TOOLTIP_GAMEPAD_BUTTONS |
| static const char * | TOOLTIP_GAMEPAD_SOUTH = "Default menu confirm action." |
| static const char * | TOOLTIP_GAMEPAD_EAST = "Default menu back action." |
| static const char * | TOOLTIP_GAMEPAD_START = "Default start/pause action." |
| static const char * | TOOLTIP_BIND_BUTTON |
| static const char * | TOOLTIP_CLEAR_BUTTON = "Set this SDL input mapping to none." |
| static const char * | TOOLTIP_RESET_BUTTON |
| static const char *const | GAMEPAD_SOURCE_UNKNOWN = "Unknown" |
| static const gamepad_axis_field | GAMEPAD_AXIS_FIELDS [] |
| static const gamepad_axis_field | GAMEPAD_DEADZONE_FIELDS [] |
|
static |
Definition at line 181 of file gui_tab_gamepad.c.
References begin_settings_table(), ctx, draw_gamepad_axis_choice(), draw_gamepad_deadzone_input(), DTTR_CONFIG_UI_INPUT_W, DTTR_CONFIG_UI_LABEL_W, end_settings_table(), FIELD_LABEL_STATE, GAMEPAD_AXIS_FIELDS, GAMEPAD_DEADZONE_FIELDS, labeled_checkbox(), labeled_input_int(), state, TOOLTIP_GAMEPAD_ENABLED, and TOOLTIP_GAMEPAD_INDEX.
Referenced by draw_gamepad_tab().
|
static |
Definition at line 75 of file gui_tab_gamepad.c.
References ctx, DTTR_CONFIG_CHOICES_GAMEPAD_AXIS, gamepad_axis_label_state(), GAMEPAD_AXIS_TOOLTIPS, labeled_choice_combo(), state, and TOOLTIP_GAMEPAD_AXIS.
Referenced by draw_gamepad_axes().
|
static |
Definition at line 233 of file gui_tab_gamepad.c.
References begin_config_table_row(), ctx, draw_config_label(), DTTR_CONFIG_UI_GAMEPAD_BUTTON_W, DTTR_GAMEPAD_MAPPING_NONE, game_action_tooltip(), gamepad_button_label_state(), gamepad_button_row_label(), gamepad_default_source_for_action(), set_status(), show_tooltip(), source, source_label(), source_tooltip(), state, themed_row_button(), TOOLTIP_BIND_BUTTON, TOOLTIP_CLEAR_BUTTON, and TOOLTIP_RESET_BUTTON.
Referenced by draw_gamepad_buttons().
|
static |
Definition at line 285 of file gui_tab_gamepad.c.
References add_scaled_vertical_spacing(), begin_gamepad_button_table(), ctx, draw_gamepad_button_row(), DTTR_CONFIG_UI_SECTION_SPACING, end_settings_table(), gamepad_button_row_count(), gamepad_button_row_label(), show_tooltip(), state, and TOOLTIP_GAMEPAD_BUTTONS.
Referenced by draw_gamepad_tab().
|
static |
Definition at line 99 of file gui_tab_gamepad.c.
References ctx, gamepad_deadzone_label_state(), labeled_input_int(), state, and TOOLTIP_GAMEPAD_DEADZONE.
Referenced by draw_gamepad_axes().
| void draw_gamepad_tab | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 311 of file gui_tab_gamepad.c.
References ctx, draw_gamepad_axes(), draw_gamepad_buttons(), and state.
|
static |
Definition at line 51 of file gui_tab_gamepad.c.
References make_config_label_state(), and state.
Referenced by draw_gamepad_axis_choice().
|
static |
Definition at line 63 of file gui_tab_gamepad.c.
References make_config_label_state(), and state.
Referenced by draw_gamepad_deadzone_input().
| int source_from_event | ( | const SDL_Event * | event | ) |
Definition at line 158 of file gui_tab_gamepad.c.
References DTTR_GAMEPAD_SOURCE_TRIGGER_LEFT, DTTR_GAMEPAD_SOURCE_TRIGGER_RIGHT, DTTR_GAMEPAD_TRIGGER_THRESHOLD, and event.
Referenced by process_events().
| const char * source_label | ( | int | source | ) |
Definition at line 123 of file gui_tab_gamepad.c.
References DTTR_GAMEPAD_MAPPING_NONE, DTTR_GAMEPAD_SOURCE_TRIGGER_LEFT, DTTR_GAMEPAD_SOURCE_TRIGGER_RIGHT, GAMEPAD_SOURCE_UNKNOWN, and source.
Referenced by draw_gamepad_button_row().
| const char * source_tooltip | ( | int | source | ) |
Definition at line 143 of file gui_tab_gamepad.c.
References DTTR_GAMEPAD_MAPPING_NONE, source, TOOLTIP_GAMEPAD_BUTTONS, TOOLTIP_GAMEPAD_EAST, TOOLTIP_GAMEPAD_SOUTH, and TOOLTIP_GAMEPAD_START.
Referenced by draw_gamepad_button_row().
|
static |
Definition at line 39 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_axes().
|
static |
Definition at line 3 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_axis_choice().
|
static |
Definition at line 45 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_axes().
|
static |
Definition at line 31 of file gui_tab_gamepad.c.
Referenced by source_label().
|
static |
Definition at line 26 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_button_row().
|
static |
Definition at line 28 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_button_row().
|
static |
Definition at line 15 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_axis_choice().
|
static |
Definition at line 20 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_buttons(), and source_tooltip().
|
static |
Definition at line 18 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_deadzone_input().
|
static |
Definition at line 24 of file gui_tab_gamepad.c.
Referenced by source_tooltip().
|
static |
Definition at line 13 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_axes().
|
static |
Definition at line 14 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_axes().
|
static |
Definition at line 23 of file gui_tab_gamepad.c.
Referenced by source_tooltip().
|
static |
Definition at line 25 of file gui_tab_gamepad.c.
Referenced by source_tooltip().
|
static |
Definition at line 29 of file gui_tab_gamepad.c.
Referenced by draw_gamepad_button_row().