Andrea Odetti
0b3e57d934
Rewrite the way full speed works.
...
This is more and more similar to AppleWin's logic.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-07 18:34:17 +01:00
Andrea Odetti
d68b503d0d
Fix mouse relative calculation to ensure pointer goes from minX to maxX (and Y) included.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-05 14:35:05 +01:00
Andrea Odetti
db71bb1a4c
sa2 & mouse: fix dead y zone used to draw the menu.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-05 13:51:07 +01:00
Andrea Odetti
db2f9be009
sa2: add some logic to implement Full Speed.
...
Because we run a frame at a time, this is a bit different than in AppleWin.
Run up to 5 extra frames.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-28 19:07:58 +01:00
Andrea Odetti
d8ebc8dc9f
Add cycle information to the Disassembly output.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-26 17:48:44 +01:00
Andrea Odetti
b65e67ed67
Ensure adaptive speed is reset before a (potential) restart.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-18 18:56:37 +01:00
Andrea Odetti
f144cb037f
SDL: Support Mouse.
...
In ImGui there are a couple of issues:
1) it ignores the menu area when computing relative motion
2) does not work well with windowed video
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-04 16:44:04 +01:00
Andrea Odetti
25dc50d83c
Add settings / diagnostics about disks.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-01 16:04:50 +01:00
Andrea Odetti
a2f89c78db
Fix adaptive speed on snapshot load.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 20:11:54 +00:00
Andrea Odetti
3d8ac1bee3
Add support for drag & drop in Drive 1.
...
And add disk names in the setting window.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-21 16:32:48 +00:00
Andrea Odetti
32c200d65c
Factor common code to change AppMode.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 11:31:00 +00:00
Andrea Odetti
405ea13ba2
Move Execution to SDLFrame for ease of use in debugger.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 10:02:19 +00:00
Andrea Odetti
c416eee9df
sa2: add namespace and remove tabs.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:31:24 +00:00
Andrea Odetti
3b917e93be
common2: add namespace and reformat everything with space over tabs.
...
This makes it "possible" to use other editors (than emacs).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:04:50 +00:00
Andrea Odetti
c81b4ab1bf
ImGui: fix event handling.
...
1) always pass events to ImGui
2) only pass keyboards to AW when ImGui says so
2021-02-23 19:32:00 +00:00
Andrea Odetti
05b2d5b2e7
Split SDLFrame to ease integration of ImGui.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 10:11:29 +00:00
Andrea Odetti
cc55d9e681
Modern syntax: virtual -> override.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-31 13:55:43 +00:00
Andrea Odetti
f61e73b639
Move resources, bitmaps and messageboxes into Frames.
...
And remove a few windows.h interface functions used before.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-20 19:07:18 +00:00
Andrea Odetti
8a41ed4d73
Introduce SDL Frame.
2021-01-13 15:28:53 +00:00