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

Method buildInputSet

src/program/ui/InputEditorModel.cpp:639–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637}
638
639void InputEditorModel::buildInputSet()
640{
641 std::set<SingleInput> new_input_set;
642
643 /* Gather all unique inputs from the movie */
644 movie->inputs->extractInputs(new_input_set);
645
646 /* Remove inputs already on the list */
647 for (SingleInput si : movie->editor->input_set) {
648 new_input_set.erase(si);
649 }
650
651 /* Add the new inputs if any */
652 for (SingleInput si : new_input_set) {
653
654 /* Gather input description */
655 for (int i=0; i<KeyMapping::INPUTLIST_SIZE; i++) {
656 for (SingleInput ti : context->config.km->input_list[i]) {
657 if (si == ti) {
658 si.description = ti.description;
659 break;
660 }
661 }
662 }
663
664 /* Insert input */
665 movie->editor->input_set.push_back(si);
666 }
667}
668
669void InputEditorModel::startPaint(int col, int minRow, int maxRow, int value, int autofire)
670{

Callers

nothing calls this directly

Calls 1

extractInputsMethod · 0.45

Tested by

no test coverage detected