Skip to content

Commit 5af5c80

Browse files
committed
Merge branch 'pr/76-keymap-editor'
2 parents a1bd8f7 + b161085 commit 5af5c80

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

config.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,12 @@ LRESULT CALLBACK InputConfig(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPar
920920
TempConfig.KeyMap = (unsigned char)
921921
SendDlgItemMessage(hDlg,IDC_KBCONFIG,CB_GETCURSEL,0,0);
922922
if (LOWORD(wParam)==IDC_KEYMAPED) {
923-
// Custom keymap edit processing (KeyMapProc) is in keyboardEdit.c
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+
}
924929
DialogBox( EmuState.WindowInstance, (LPCTSTR) IDD_KEYMAPEDIT, hDlg,
925930
(DLGPROC) KeyMapProc );
926931
}

docs/KeyMapEditor.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ follows:
3030
A list of valid PC and CoCo key names can be found in keynames.h
3131
in Vcc sources.
3232

33-
Here is an sample entry line:
33+
Here are some example entry lines:
3434

3535
# PC key name Mod CoCo name Mod
3636
# ----------- --- ----------- ---
@@ -111,4 +111,4 @@ user to choose a different keymap file. When a file is selected
111111
the current custom keymapping is automatically saved to it. If
112112
the file selected does not exist the user is prompted if they
113113
want to create it.
114-
114+

keyboardEdit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ BOOL Process_CoCoKey(int BtnId)
848848
ShowCoCoKey();
849849
EnableWindow(GetDlgItem(hKeyMapDlg,IDC_SET_CUST_KEYMAP),TRUE);
850850
} else {
851-
MessageBox(hKeyMapDlg,"Press key(s) on PC keyboard first","Error",0);
851+
MessageBox(hKeyMapDlg,"Press PC key to map first","Error",0);
852852
}
853853
return TRUE;
854854
}

0 commit comments

Comments
 (0)