mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-07 07:29:20 +00:00
Set Ctrl-0 Toggle Fastest/100%, Ctrl-3 Always fastest
This commit is contained in:
parent
32b42b2aeb
commit
5e9b8fe2ae
@ -1393,20 +1393,20 @@ LRESULT CALLBACK FrameWndProc (
|
|||||||
(g_nAppMode != MODE_LOGO)) // !MODE_LOGO - not emulating so don't pass to the VM's keyboard
|
(g_nAppMode != MODE_LOGO)) // !MODE_LOGO - not emulating so don't pass to the VM's keyboard
|
||||||
{
|
{
|
||||||
// GH#678 Alternate key(s) to toggle max speed
|
// GH#678 Alternate key(s) to toggle max speed
|
||||||
// Ctrl-0 Speed fastest
|
// Ctrl-0 Toggle speed fastest / 100%
|
||||||
// Ctrl-1 Speed 100%
|
// Ctrl-1 Speed 100%
|
||||||
// Ctrl-3 Toggle speed fastest / 100%
|
// Ctrl-3 Speed fastest
|
||||||
if( KeybGetCtrlStatus() && wparam >= '0' && wparam <= '9' )
|
if( KeybGetCtrlStatus() && wparam >= '0' && wparam <= '9' )
|
||||||
{
|
{
|
||||||
switch (wparam)
|
switch (wparam)
|
||||||
{
|
{
|
||||||
case '0': g_dwSpeed = SPEED_MAX ; break; // Don't use g_bScrollLock_FullSpeed but g_dwSpeed
|
case '0': g_dwSpeed = (g_dwSpeed != SPEED_MAX)
|
||||||
case '1': g_dwSpeed = SPEED_NORMAL; break;
|
|
||||||
case '3': g_dwSpeed = (g_dwSpeed != SPEED_MAX)
|
|
||||||
? SPEED_MAX
|
? SPEED_MAX
|
||||||
: SPEED_NORMAL
|
: SPEED_NORMAL
|
||||||
;
|
;
|
||||||
break;
|
break;
|
||||||
|
case '1': g_dwSpeed = SPEED_NORMAL; break;
|
||||||
|
case '3': g_dwSpeed = SPEED_MAX ; break; // Don't use g_bScrollLock_FullSpeed but g_dwSpeed
|
||||||
default:
|
default:
|
||||||
KeybQueueKeypress(wparam, NOT_ASCII);
|
KeybQueueKeypress(wparam, NOT_ASCII);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user