| 1 | struct InputSettings : SettingsLayout { |
| 2 | HorizontalLayout focusLayout; |
| 3 | Label focusLabel; |
| 4 | CheckLabel focusPause; |
| 5 | CheckLabel focusAllow; |
| 6 | HorizontalLayout selectionLayout; |
| 7 | ComboButton systemList; |
| 8 | ComboButton portList; |
| 9 | ComboButton deviceList; |
| 10 | ListView inputList; |
| 11 | HorizontalLayout controlLayout; |
| 12 | Button assign[3]; |
| 13 | Widget spacer; |
| 14 | Button resetButton; |
| 15 | Button eraseButton; |
| 16 | |
| 17 | void synchronize(); |
| 18 | |
| 19 | Emulator::Interface& activeSystem(); |
| 20 | Emulator::Interface::Port& activePort(); |
| 21 | Emulator::Interface::Device& activeDevice(); |
| 22 | |
| 23 | void systemChanged(); |
| 24 | void portChanged(); |
| 25 | void deviceChanged(); |
| 26 | void inputChanged(); |
| 27 | void resetInput(); |
| 28 | void eraseInput(); |
| 29 | void assignInput(); |
| 30 | void assignMouseInput(unsigned n); |
| 31 | void inputEvent(HID::Device& device, unsigned group, unsigned input, int16_t oldValue, int16_t newValue, bool allowMouseInput = false); |
| 32 | InputSettings(); |
| 33 | |
| 34 | private: |
| 35 | AbstractInput* activeInput = nullptr; |
| 36 | }; |
| 37 | |
| 38 | extern InputSettings* inputSettings; |