| 637 | } |
| 638 | |
| 639 | void 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 | |
| 669 | void InputEditorModel::startPaint(int col, int minRow, int maxRow, int value, int autofire) |
| 670 | { |
nothing calls this directly
no test coverage detected