MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / keymapChanged

Method keymapChanged

gui/qt/settings.cpp:858–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858void MainWindow::keymapChanged() {
859 if (ui->radioNaturalKeys->isChecked()) {
860 setKeymap(SETTING_KEYPAD_NATURAL);
861 } else if (ui->radioCEmuKeys->isChecked()) {
862 setKeymap(SETTING_KEYPAD_CEMU);
863 } else if (ui->radioTilEmKeys->isChecked()) {
864 setKeymap(SETTING_KEYPAD_TILEM);
865 } else if (ui->radioWabbitemuKeys->isChecked()) {
866 setKeymap(SETTING_KEYPAD_WABBITEMU);
867 } else if (ui->radiojsTIfiedKeys->isChecked()) {
868 setKeymap(SETTING_KEYPAD_JSTIFIED);
869 } else if (ui->radioSmartPadKeys->isChecked()) {
870 QMessageBox::warning(this, MSG_WARNING, tr("Be aware that this may behave unexpectedly due to the combinations of keypresses sent by the calculator, which may trigger some global shortcuts on your system!"));
871 setKeymap(SETTING_KEYPAD_SMARTPAD);
872 } else if (ui->radioCustomKeys->isChecked()) {
873 setKeymap(SETTING_KEYPAD_CUSTOM);
874 }
875}
876
877void MainWindow::setKeymap(const QString &value) {
878 QtKeypadBridge::KeymapMode mode;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected