Commit graph

26 commits

Author SHA1 Message Date
Andrea Odetti
bea7bac3ab Rename folder sa2 -> sdl for consistency.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-23 19:25:25 +00:00
Andrea Odetti
eae49b3f41 Integrate AW changes about IPropertySheet. 2020-12-20 16:35:44 +00:00
Andrea Odetti
81664c60aa Add support for Pause / Restart key.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-06 19:53:35 +00:00
Andrea Odetti
092a74f5b3 Add F11 Save State confirmation as it is too easy to confuse with F12.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-06 18:28:17 +00:00
Andrea Odetti
1d07215f78 Add ability to Save/Load Snapshot F11/F12.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-06 18:03:41 +00:00
Andrea Odetti
861c87efd4 Remove pointless getScreenData() and shed some nanoseconds from screen repaint.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-30 13:38:56 +00:00
Andrea Odetti
dc030fe607 Change F2 like AW: reset.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-30 09:23:22 +00:00
Andrea Odetti
a5734cac10 Use GetAppleWindowTitle() from AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-29 16:37:45 +00:00
Andrea Odetti
8e6fc89384 From AW's master, AppleWin.cpp split.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-27 13:48:53 +00:00
Andrea Odetti
cadb72442a Use Video.cpp "as is".
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-22 09:36:28 +00:00
Andrea Odetti
a121981e5a sa2: Add support for --headless and --fixed-speed.
Headless will skip the video refresh (and the vsync).
Fixed-Speed will avoid adaptive speed.

Used together, the emulator will go at maximum speed skipping video refresh (useful for profiling).
2020-11-21 15:07:31 +00:00
Andrea Odetti
6d4dd11f06 Audio: remove useless workaround 1/3 1/4 and initial silence.
Let AW's adaptive algorithm do it all.
Just be careful not writing too much to SDL as it would unsettle AW.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-20 20:23:10 +00:00
Andrea Odetti
48146f4c34 Keep track of actual speed to ensure emulated CPU goes at the right speed (and keeps audio on track).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-20 15:32:35 +00:00
Andrea Odetti
e7e848917b Reduce extra verbose logging of keys.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-14 09:32:51 +00:00
Andrea Odetti
f13816262d Clean up multithreading code and offer it via command line options.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-13 11:51:20 +00:00
Andrea Odetti
314c647daf more threads 2020-11-12 19:51:45 +00:00
Andrea Odetti
b360d27f22 split 2020-11-12 19:31:35 +00:00
Andrea Odetti
4ff7741a41 Fix previous sdl ppp commit, too messy to revert.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-12 18:52:52 +00:00
Andrea Odetti
c7a8c628e4 Changes required from upstream. 2020-11-12 18:43:04 +00:00
Andrea Odetti
0dda605c36 ppp 2020-11-11 11:20:06 +00:00
Andrea Odetti
3ba2cd6d98 SDL2 add audio.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-20 15:32:45 +01:00
Andrea Odetti
a72d19b386 Couple of fixes from upstream AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-12 20:58:32 +01:00
Andrea Odetti
9320db8ab7 Move letters to KeyDown as opposed to text.
It is easier to handle Ctrl.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-12 20:30:23 +01:00
mariofutire@gmail.com
bc029dee97 sa2: make the keyboard "work" (no CTRL-ASCII codes for the time being).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-11 20:16:07 +01:00
mariofutire@gmail.com
1400828452 Use keycode as opposed to scancode.
We honour a layout change decided by the user.

Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:02 +01:00
mariofutire@gmail.com
aac2c5139a Split event handling and "video" state to separate class.
Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:02 +01:00