mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
Fix #267: allow mousecard move & button in MODE_STEPPING
This commit is contained in:
parent
d0b067f8d2
commit
779b86b832
@ -1312,7 +1312,7 @@ LRESULT CALLBACK FrameWndProc (
|
||||
{
|
||||
RevealCursor();
|
||||
}
|
||||
else if (g_nAppMode == MODE_RUNNING)
|
||||
else if (g_nAppMode == MODE_RUNNING || g_nAppMode == MODE_STEPPING)
|
||||
{
|
||||
if (!sg_Mouse.IsEnabled())
|
||||
{
|
||||
@ -1389,7 +1389,7 @@ LRESULT CALLBACK FrameWndProc (
|
||||
DrawCrosshairs(x,y);
|
||||
JoySetPosition(x-viewportx-2, g_nViewportCX-4, y-viewporty-2, g_nViewportCY-4);
|
||||
}
|
||||
else if (sg_Mouse.IsActiveAndEnabled() && (g_nAppMode == MODE_RUNNING))
|
||||
else if (sg_Mouse.IsActiveAndEnabled() && (g_nAppMode == MODE_RUNNING || g_nAppMode == MODE_STEPPING))
|
||||
{
|
||||
if (g_bLastCursorInAppleViewport)
|
||||
break;
|
||||
@ -1420,7 +1420,7 @@ LRESULT CALLBACK FrameWndProc (
|
||||
if (wparam == IDEVENT_TIMER_MOUSE)
|
||||
{
|
||||
// NB. Need to check /g_bAppActive/ since WM_TIMER events still occur after AppleWin app has lost focus
|
||||
if (g_bAppActive && sg_Mouse.IsActiveAndEnabled() && (g_nAppMode == MODE_RUNNING))
|
||||
if (g_bAppActive && sg_Mouse.IsActiveAndEnabled() && (g_nAppMode == MODE_RUNNING || g_nAppMode == MODE_STEPPING))
|
||||
{
|
||||
if (!g_bLastCursorInAppleViewport)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user