Skip to content

Commit b161085

Browse files
author
ejaquay
committed
Notify user if Custom keymap not selected when keyboard config EDIT clicked.
1 parent 3dea799 commit b161085

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

config.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -919,15 +919,17 @@ LRESULT CALLBACK InputConfig(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPar
919919
case WM_COMMAND:
920920
TempConfig.KeyMap = (unsigned char)
921921
SendDlgItemMessage(hDlg,IDC_KBCONFIG,CB_GETCURSEL,0,0);
922-
923-
// Considered a check here for custom keyboard selected but the layout shown in the pull-down
924-
// is not the actual config until apply is clicked. Check would make things more confusing.
925-
if (LOWORD(wParam)==IDC_KEYMAPED) {
922+
if (LOWORD(wParam)==IDC_KEYMAPED) {
923+
// Notify user if custom keyboard if not selected but allow edit anyway.
924+
if (CurrentConfig.KeyMap != 3) {
925+
MessageBox(0, "The custom keyboard map is not currently applied. For edits "
926+
"to take effect select Custom mapping AND Apply when done.",
927+
"Notice", 0);
928+
}
926929
DialogBox( EmuState.WindowInstance, (LPCTSTR) IDD_KEYMAPEDIT, hDlg,
927930
(DLGPROC) KeyMapProc );
928931
}
929-
930-
break;
932+
break;
931933
}
932934
return(0);
933935
}

0 commit comments

Comments
 (0)