]> Shamusworld >> Repos - apple2/commitdiff
Moved open/closed apple keys to L/R ALT keys.
authorShamus Hammons <jlhamm@acm.org>
Wed, 2 Apr 2014 19:56:21 +0000 (14:56 -0500)
committerShamus Hammons <jlhamm@acm.org>
Wed, 2 Apr 2014 19:56:21 +0000 (14:56 -0500)
src/apple2.cpp

index 26cab227e64c2923a83656d14b7befba631621b4..d3d37b2e62e6c9f32bc14e4bdf5fd5354aa273ff 100644 (file)
@@ -679,12 +679,6 @@ static void FrameCallback(void)
                                        keyDown = true;
                                        break;
                                }
-                               else if (event.key.keysym.sym == SDLK_3)
-                               {
-                                       lastKeyPressed = '#';
-                                       keyDown = true;
-                                       break;
-                               }
                                else if (event.key.keysym.sym == SDLK_4)
                                {
                                        lastKeyPressed = '$';
@@ -826,9 +820,11 @@ static void FrameCallback(void)
                        }
 
                        // Paddle buttons 0 & 1
-                       if (event.key.keysym.sym == SDLK_INSERT)
+//                     if (event.key.keysym.sym == SDLK_INSERT)
+                       if (event.key.keysym.sym == SDLK_LALT)
                                openAppleDown = true;
-                       if (event.key.keysym.sym == SDLK_PAGEUP)
+//                     if (event.key.keysym.sym == SDLK_PAGEUP)
+                       if (event.key.keysym.sym == SDLK_RALT)
                                closedAppleDown = true;
 
                        if (event.key.keysym.sym == SDLK_F11)
@@ -893,9 +889,11 @@ static void FrameCallback(void)
                                capsLockDebounce = false;
 
                        // Paddle buttons 0 & 1
-                       if (event.key.keysym.sym == SDLK_INSERT)
+//                     if (event.key.keysym.sym == SDLK_INSERT)
+                       if (event.key.keysym.sym == SDLK_LALT)
                                openAppleDown = false;
-                       if (event.key.keysym.sym == SDLK_PAGEUP)
+//                     if (event.key.keysym.sym == SDLK_PAGEUP)
+                       if (event.key.keysym.sym == SDLK_RALT)
                                closedAppleDown = false;
 
 //                     if (event.key.keysym.sym >= SDLK_a && event.key.keysym.sym <= SDLK_z)