| 2008 | } |
| 2009 | |
| 2010 | void MidiController::DropdownUpdated(DropdownList* list, int oldVal, double time) |
| 2011 | { |
| 2012 | if (list == mPageSelector) |
| 2013 | { |
| 2014 | SetEntirePageToZero(oldVal); |
| 2015 | ResyncControllerState(); |
| 2016 | } |
| 2017 | if (list == mControllerList) |
| 2018 | { |
| 2019 | if (TheSynth->GetTopModalFocusItem() == mControllerList->GetModalDropdown()) |
| 2020 | { |
| 2021 | ConnectDevice(); |
| 2022 | OnDeviceChanged(); |
| 2023 | } |
| 2024 | else |
| 2025 | { |
| 2026 | UpdateControllerIndex(); |
| 2027 | } |
| 2028 | } |
| 2029 | if (list == mMonomeDeviceDropdown) |
| 2030 | { |
| 2031 | Monome* monome = dynamic_cast<Monome*>(mNonstandardController); |
| 2032 | if (monome) |
| 2033 | monome->ConnectToDevice(mMonomeDeviceDropdown->GetLabel(mMonomeDeviceIndex)); |
| 2034 | } |
| 2035 | if (list == mLayoutFileDropdown) |
| 2036 | { |
| 2037 | LoadControllerLayout(mLayoutFileDropdown->GetLabel(mLayoutFileIndex)); |
| 2038 | } |
| 2039 | } |
| 2040 | |
| 2041 | void MidiController::DropdownClicked(DropdownList* list) |
| 2042 | { |
nothing calls this directly
no test coverage detected