2024-02-27 15:13:16 +00:00
|
|
|
<template name="config-menu__controls">
|
|
|
|
<head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form class="config__form" data-attr-cur-input="cur_input_row" data-attr-cur-binding-slot="active_binding_slot">
|
|
|
|
<div class="config__header">
|
|
|
|
<div class="config__header-left">
|
|
|
|
<button
|
|
|
|
class="toggle"
|
2024-03-14 15:12:52 +00:00
|
|
|
id="cont_kb_toggle"
|
2024-02-27 15:13:16 +00:00
|
|
|
data-class-toggle--checked="input_device_is_keyboard"
|
|
|
|
onclick="toggle_input_device"
|
2024-04-18 14:42:39 +00:00
|
|
|
style="nav-down: #input_row_button_0_0; nav-up: #tab_controls"
|
2024-02-27 15:13:16 +00:00
|
|
|
>
|
|
|
|
<div class="toggle__border" />
|
|
|
|
<div class="toggle__floater" />
|
|
|
|
<div class="toggle__icons">
|
|
|
|
<div class="toggle__icon toggle__icon--left"><div></div></div>
|
|
|
|
<div class="toggle__icon toggle__icon--right"><div></div></div>
|
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button
|
|
|
|
class="button button--warning"
|
2024-03-14 15:12:52 +00:00
|
|
|
style="nav-down:#input_row_button_0_0"
|
2024-04-21 18:02:47 +00:00
|
|
|
data-event-click="reset_input_bindings_to_defaults"
|
2024-02-27 15:13:16 +00:00
|
|
|
>
|
|
|
|
<div class="button__label">Reset to defaults</div>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="config__wrapper input-config">
|
|
|
|
<div class="input-config__horizontal-split">
|
|
|
|
<div class="input-config__mappings" data-event-mouseout="set_input_row_focus(-1)">
|
|
|
|
<div class="input-config__mappings-scroll">
|
|
|
|
<div class="input-config__mappings-wrapper">
|
|
|
|
<div
|
|
|
|
class="control-option"
|
2024-03-14 15:12:52 +00:00
|
|
|
data-attr-id="'input_row_' + i"
|
2024-02-27 15:13:16 +00:00
|
|
|
data-for="input_bindings, i : inputs.array"
|
|
|
|
data-event-mouseover="set_input_row_focus(i)"
|
|
|
|
data-class-control-option--active="get_input_enum_name(i)==cur_input_row"
|
2024-07-06 01:19:31 +00:00
|
|
|
data-if="!input_device_is_keyboard || (get_input_enum_name(i) != 'TOGGLE_MENU' && get_input_enum_name(i) != 'ACCEPT_MENU' && get_input_enum_name(i) != 'APPLY_MENU')"
|
2024-02-27 15:13:16 +00:00
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="control-option__label"
|
|
|
|
>{{get_input_name(i)}}</label>
|
|
|
|
<div class="control-option__bindings">
|
|
|
|
<button
|
2024-03-14 15:12:52 +00:00
|
|
|
data-attr-id="'input_row_button_' + i + '_' + j"
|
2024-02-27 15:13:16 +00:00
|
|
|
data-event-blur="set_input_row_focus(-1)"
|
|
|
|
data-event-focus="set_input_row_focus(i)"
|
|
|
|
data-for="cur_binding, j : input_bindings"
|
|
|
|
data-event-click="set_input_binding(i,j)"
|
|
|
|
class="prompt-font control-option__binding"
|
|
|
|
data-attr-bind-slot="j"
|
2024-03-14 15:12:52 +00:00
|
|
|
data-attr-style="i == 0 ? 'nav-up:#cont_kb_toggle' : 'nav-up:auto'"
|
2024-02-27 15:13:16 +00:00
|
|
|
>
|
|
|
|
<div class="control-option__binding-recording">
|
|
|
|
<div class="control-option__binding-circle" />
|
|
|
|
<div class="control-option__binding-edge">
|
|
|
|
<svg class="control-option__binding-edge-svg" src="icons/RecordBorder.svg" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-option__binding-icon">{{cur_binding}}</div>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<button
|
2024-07-06 01:19:31 +00:00
|
|
|
data-if="get_input_enum_name(i) != 'TOGGLE_MENU' && get_input_enum_name(i) != 'ACCEPT_MENU'"
|
2024-02-27 15:13:16 +00:00
|
|
|
data-event-blur="set_input_row_focus(-1)"
|
|
|
|
data-event-focus="set_input_row_focus(i)"
|
|
|
|
data-event-click="clear_input_bindings(i)"
|
2024-09-13 15:13:52 +00:00
|
|
|
class="icon-button icon-button--error"
|
2024-03-14 15:12:52 +00:00
|
|
|
data-attr-style="i == 0 ? 'nav-up:#cont_kb_toggle' : 'nav-up:auto'"
|
2024-02-27 15:13:16 +00:00
|
|
|
>
|
|
|
|
<svg src="icons/Trash.svg" />
|
|
|
|
</button>
|
2024-07-06 01:19:31 +00:00
|
|
|
<button
|
|
|
|
data-if="get_input_enum_name(i) == 'TOGGLE_MENU' || get_input_enum_name(i) == 'ACCEPT_MENU'"
|
|
|
|
data-event-blur="set_input_row_focus(-1)"
|
|
|
|
data-event-focus="set_input_row_focus(i)"
|
|
|
|
data-event-click="reset_single_input_binding_to_default(i)"
|
2024-09-13 15:13:52 +00:00
|
|
|
class="icon-button icon-button--error"
|
2024-07-06 01:19:31 +00:00
|
|
|
data-attr-style="i == 0 ? 'nav-up:#cont_kb_toggle' : 'nav-up:auto'"
|
|
|
|
>
|
|
|
|
<svg src="icons/Reset.svg" />
|
|
|
|
</button>
|
2024-02-27 15:13:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-config__visual-wrapper">
|
|
|
|
<div class="input-config__visual-aspect">
|
|
|
|
<div class="input-config__visual">
|
|
|
|
<!-- stick only -->
|
|
|
|
<div class="input-config__visual-stick-wrapper">
|
2024-03-03 20:06:13 +00:00
|
|
|
<div
|
|
|
|
class="input-viz input-config__visual-stick"
|
|
|
|
visual-input="X_AXIS_NEG X_AXIS_POS Y_AXIS_NEG Y_AXIS_POS"
|
|
|
|
>
|
|
|
|
<div class="input-viz__stick-split input-viz__stick-split--vertical">
|
|
|
|
<div class="input-viz input-viz__mappings" visual-input="Y_AXIS_POS">
|
|
|
|
<svg class="input-viz__dpad-arrow input-viz__dpad-arrow--up" src="icons/VizMap/DPadArrow.svg" />
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.Y_AXIS_POS"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-viz__dpad-divider" />
|
|
|
|
<div class="input-viz input-viz__mappings" visual-input="Y_AXIS_NEG">
|
|
|
|
<svg class="input-viz__dpad-arrow input-viz__dpad-arrow--down" src="icons/VizMap/DPadArrow.svg" />
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.Y_AXIS_NEG"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-viz__stick-split input-viz__stick-split--horizontal">
|
|
|
|
<div class="input-viz input-viz__mappings" visual-input="X_AXIS_NEG">
|
|
|
|
<svg class="input-viz__dpad-arrow input-viz__dpad-arrow--left" src="icons/VizMap/DPadArrow.svg" />
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.X_AXIS_NEG"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-viz__dpad-divider" />
|
|
|
|
<div class="input-viz input-viz__mappings" visual-input="X_AXIS_POS">
|
|
|
|
<svg class="input-viz__dpad-arrow input-viz__dpad-arrow--right" src="icons/VizMap/DPadArrow.svg" />
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.X_AXIS_POS"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-27 15:13:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- top half -->
|
|
|
|
<div class="input-config__visual-half">
|
|
|
|
<div class="input-config__visual-quarter-left">
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__dpad"
|
|
|
|
visual-input="DPAD_UP DPAD_DOWN DPAD_LEFT DPAD_RIGHT"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/DPad.svg" />
|
|
|
|
<div class="input-viz__dpad-split input-viz__dpad-split--vertical">
|
|
|
|
<div class="input-viz input-viz__mappings" visual-input="DPAD_UP">
|
|
|
|
<svg class="input-viz__dpad-arrow input-viz__dpad-arrow--up" src="icons/VizMap/DPadArrow.svg" />
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.DPAD_UP"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-viz__dpad-divider" />
|
|
|
|
<div class="input-viz input-viz__mappings" visual-input="DPAD_DOWN">
|
|
|
|
<svg class="input-viz__dpad-arrow input-viz__dpad-arrow--down" src="icons/VizMap/DPadArrow.svg" />
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.DPAD_DOWN"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-viz__dpad-split input-viz__dpad-split--horizontal">
|
|
|
|
<div class="input-viz input-viz__mappings" visual-input="DPAD_LEFT">
|
|
|
|
<svg class="input-viz__dpad-arrow input-viz__dpad-arrow--left" src="icons/VizMap/DPadArrow.svg" />
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.DPAD_LEFT"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-viz__dpad-divider" />
|
|
|
|
<div class="input-viz input-viz__mappings" visual-input="DPAD_RIGHT">
|
|
|
|
<svg class="input-viz__dpad-arrow input-viz__dpad-arrow--right" src="icons/VizMap/DPadArrow.svg" />
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.DPAD_RIGHT"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-config__visual-quarter-right">
|
2024-03-03 17:33:49 +00:00
|
|
|
<div class="input-config__main-buttons">
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__button input-viz__button--sm input-viz__button--Start"
|
|
|
|
visual-input="START"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/ButtonSmall.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.START"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__button input-viz__button--lg input-viz__button--B"
|
|
|
|
visual-input="B"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/ButtonLarge.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.B"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__button input-viz__button--lg input-viz__button--A"
|
|
|
|
visual-input="A"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/ButtonLarge.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.A"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-27 15:13:16 +00:00
|
|
|
<div class="input-config__c-buttons">
|
|
|
|
<div class="input-config__c-buttons-lr">
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__button input-viz__button--md input-viz__button--C"
|
|
|
|
visual-input="C_LEFT"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/ButtonMedium.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.C_LEFT"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__button input-viz__button--md input-viz__button--C"
|
|
|
|
visual-input="C_RIGHT"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/ButtonMedium.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.C_RIGHT"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-config__c-buttons-du">
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__button input-viz__button--md input-viz__button--C"
|
|
|
|
visual-input="C_DOWN"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/ButtonMedium.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.C_DOWN"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__button input-viz__button--sm input-viz__button--C"
|
|
|
|
visual-input="C_UP"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/ButtonMedium.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.C_UP"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- bottom half -->
|
|
|
|
<div class="input-config__visual-half input-config__visual-half--bottom">
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__Z"
|
|
|
|
visual-input="Z"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/Target.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.Z"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__R"
|
|
|
|
visual-input="R"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/Shield.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.R"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="input-viz input-viz__L"
|
|
|
|
visual-input="L"
|
|
|
|
>
|
|
|
|
<svg src="icons/VizMap/Map.svg" />
|
|
|
|
<div class="input-viz__mappings">
|
|
|
|
<div
|
|
|
|
class="input-config__visual-mapping"
|
|
|
|
data-for="cur_binding, i : inputs.L"
|
|
|
|
>
|
|
|
|
<div>{{cur_binding}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</template>
|
|
|
|
|