Rename ClosedApple -> SolidApple.

Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
This commit is contained in:
mariofutire@gmail.com 2020-10-11 10:29:37 +01:00 committed by Andrea Odetti
parent 4ba10089c3
commit 080198f88c
5 changed files with 7 additions and 7 deletions

View file

@ -81,7 +81,7 @@ This is based on Qt, currently tested with 5.10
* full speed when disk spins execute up to 5 ms real wall clock of emulator code (then returns to Qt) * full speed when disk spins execute up to 5 ms real wall clock of emulator code (then returns to Qt)
* (standard) audio is supported and there are a few configuration options to tune the latency (default very conservative 200ms) * (standard) audio is supported and there are a few configuration options to tune the latency (default very conservative 200ms)
* plain mockingboard is supported as well (not speech, which hang the emulator) * plain mockingboard is supported as well (not speech, which hang the emulator)
* Open Apple and Closed Apple can be emulated using AltGr and Menu (unfortunately, Alt does not work well) * Open Apple and Solid Apple can be emulated using AltGr and Menu (unfortunately, Alt does not work well)
## Build ## Build

View file

@ -108,7 +108,7 @@ void Video::keyReleaseEvent(QKeyEvent *event)
Paddle::setButtonReleased(Paddle::ourOpenApple); Paddle::setButtonReleased(Paddle::ourOpenApple);
return; return;
case Qt::Key_Menu: case Qt::Key_Menu:
Paddle::setButtonReleased(Paddle::ourClosedApple); Paddle::setButtonReleased(Paddle::ourSolidApple);
return; return;
} }
} }
@ -128,7 +128,7 @@ void Video::keyPressEvent(QKeyEvent *event)
Paddle::setButtonPressed(Paddle::ourOpenApple); Paddle::setButtonPressed(Paddle::ourOpenApple);
return; return;
case Qt::Key_Menu: case Qt::Key_Menu:
Paddle::setButtonPressed(Paddle::ourClosedApple); Paddle::setButtonPressed(Paddle::ourSolidApple);
return; return;
} }
} }

View file

@ -334,7 +334,7 @@ void run_sdl(int argc, const char * argv [])
} }
case SDL_SCANCODE_RALT: case SDL_SCANCODE_RALT:
{ {
Paddle::setButtonPressed(Paddle::ourClosedApple); Paddle::setButtonPressed(Paddle::ourSolidApple);
break; break;
} }
} }
@ -353,7 +353,7 @@ void run_sdl(int argc, const char * argv [])
} }
case SDL_SCANCODE_RALT: case SDL_SCANCODE_RALT:
{ {
Paddle::setButtonReleased(Paddle::ourClosedApple); Paddle::setButtonReleased(Paddle::ourSolidApple);
break; break;
} }
} }

View file

@ -74,7 +74,7 @@ BYTE __stdcall JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExe
case Paddle::ourOpenApple: case Paddle::ourOpenApple:
pressed = paddle->getButton(0); pressed = paddle->getButton(0);
break; break;
case Paddle::ourClosedApple: case Paddle::ourSolidApple:
pressed = paddle->getButton(1); pressed = paddle->getButton(1);
break; break;
case Paddle::ourThirdApple: case Paddle::ourThirdApple:

View file

@ -14,7 +14,7 @@ public:
virtual int getAxis(int i) const; virtual int getAxis(int i) const;
static constexpr int ourOpenApple = 0x61; static constexpr int ourOpenApple = 0x61;
static constexpr int ourClosedApple = 0x62; static constexpr int ourSolidApple = 0x62;
static constexpr int ourThirdApple = 0x63; static constexpr int ourThirdApple = 0x63;
static void setButtonPressed(int i); static void setButtonPressed(int i);