MCPcopy Create free account
hub / github.com/clementgallet/libTAS / clickSection

Method clickSection

src/program/ui/InputEditorView.cpp:1080–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1078}
1079
1080void InputEditorView::clickSection(int logicalIndex)
1081{
1082 /* Skip toggling the first two columns */
1083 if (logicalIndex < InputEditorModel::COLUMN_SPECIAL_SIZE)
1084 return;
1085
1086 if (logicalIndex == inputEditorModel->columnCount() - 1) {
1087 addInputColumn();
1088 return;
1089 }
1090
1091 /* Cycle between nothing, autohold, autofire */
1092 if (inputEditorModel->isAutoholdInput(logicalIndex))
1093 inputEditorModel->setAutofireInput(logicalIndex, true);
1094 else if (inputEditorModel->isAutofireInput(logicalIndex))
1095 inputEditorModel->setAutoholdInput(logicalIndex, false);
1096 else
1097 inputEditorModel->setAutoholdInput(logicalIndex, true);
1098}

Callers

nothing calls this directly

Calls 5

isAutoholdInputMethod · 0.80
setAutofireInputMethod · 0.80
isAutofireInputMethod · 0.80
setAutoholdInputMethod · 0.80
columnCountMethod · 0.45

Tested by

no test coverage detected