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
a8057a5850
Add hack to make the mouse (barely) usable with geos.
...
SDL_CaptureMouse() seems to be the only solution.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-04 18:48:02 +01:00
Andrea Odetti
8d07bb1506
Fix for https://github.com/tomcw/mb-audit
...
Update MB (and disk and speaker) in smaller batches.
1 ms like AppleWin.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-03 11:51:12 +01:00
Andrea Odetti
e2634210ca
Fix various warnings.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 21:50:33 +01:00
Andrea Odetti
825cb59e62
Since a DialogBox stops the emulator, we need to reset the speed.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-28 19:23:51 +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
9af407a089
Add support to copy text to clipboard.
...
Fix \n handling in paste from clipboard.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-22 17:55:51 +01:00
Andrea Odetti
16c70e4cde
Fix https://github.com/audetto/AppleWin/issues/29
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-22 15:23:25 +01:00
Andrea Odetti
283a74d7e7
Separate dropped file processing.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-19 11:22:08 +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
54403f74c6
Ensure the speed is reset every time the mode might change.
...
So we avoid that the next adaptive clock is way off.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-17 20:19:58 +01:00
Andrea Odetti
329c19c8d9
Handle MODE_DEBUG in main loop.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-16 18:44:16 +01:00
Andrea Odetti
9d4f293a3c
More Debugger related work.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-15 13:32:34 +01:00
Andrea Odetti
1f14d06790
Keyboard: rationalise logging.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-12 14:00:21 +01:00
Andrea Odetti
87f232d990
Shift-Insert to paste from clipboard.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-09 19:44:28 +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
8dc4c042a2
Drag&Drop State files.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 14:45:40 +00:00
Andrea Odetti
3e03e3ba57
Add more audio settings / diagnostics.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 14:45:40 +00:00
Andrea Odetti
177858b055
Run missing untabify.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-22 10:37:52 +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
dd6455ceb9
Add 6502 disassembler.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-07 20:32:24 +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
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