Keyboard:

. When in MODE_LOGO, don't pass WM_CHAR to Apple II keyboard (now consistent with WM_KEYDOWN)
. Small refactor for Apple II keyboard's WM_KEYDOWN handler
Move code for log init & done to Log.cpp
This commit is contained in:
tomcw
2018-07-15 15:38:37 +01:00
parent 881e51874b
commit c457241229
5 changed files with 54 additions and 26 deletions
+4 -2
View File
@@ -1098,7 +1098,8 @@ LRESULT CALLBACK FrameWndProc (
{
if( !g_bDebuggerEatKey )
{
KeybQueueKeypress((int)wparam, ASCII);
if (g_nAppMode != MODE_LOGO) // !MODE_LOGO - not emulating so don't pass to the VM's keyboard
KeybQueueKeypress((int)wparam, ASCII);
}
else
{
@@ -1399,7 +1400,8 @@ LRESULT CALLBACK FrameWndProc (
BOOL autorep = (HIWORD(lparam) & KF_REPEAT) != 0;
BOOL IsJoyKey = JoyProcessKey((int)wparam, extended, down, autorep);
if (!IsJoyKey && (g_nAppMode != MODE_LOGO))
if (!IsJoyKey &&
(g_nAppMode != MODE_LOGO)) // !MODE_LOGO - not emulating so don't pass to the VM's keyboard
{
KeybQueueKeypress((int)wparam, NOT_ASCII);