mirror of https://github.com/bsnes-emu/bsnes.git
40 lines
969 B
C++
40 lines
969 B
C++
struct InputSettings : SettingsLayout {
|
|
Label title;
|
|
HorizontalLayout focusLayout;
|
|
Label focusLabel;
|
|
CheckButton focusPause;
|
|
CheckButton focusAllow;
|
|
HorizontalLayout selectionLayout;
|
|
ComboButton systemList;
|
|
ComboButton portList;
|
|
ComboButton deviceList;
|
|
ListView inputList;
|
|
HorizontalLayout controlLayout;
|
|
Button assign[3];
|
|
Widget spacer;
|
|
Button resetButton;
|
|
Button eraseButton;
|
|
|
|
void synchronize();
|
|
|
|
Emulator::Interface& activeSystem();
|
|
Emulator::Interface::Port& activePort();
|
|
Emulator::Interface::Device& activeDevice();
|
|
|
|
void systemChanged();
|
|
void portChanged();
|
|
void deviceChanged();
|
|
void inputChanged();
|
|
void resetInput();
|
|
void eraseInput();
|
|
void assignInput();
|
|
void assignMouseInput(unsigned n);
|
|
void inputEvent(unsigned scancode, int16_t value, bool allowMouseInput = false);
|
|
InputSettings();
|
|
|
|
private:
|
|
AbstractInput* activeInput = nullptr;
|
|
};
|
|
|
|
extern InputSettings* inputSettings;
|