| 1078 | } |
| 1079 | |
| 1080 | void 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 | } |
nothing calls this directly
no test coverage detected