Commit Graph

327 Commits

Author SHA1 Message Date
Dagen Brock
c20361a66d
Merge pull request #71 from ksherlock/win32_adb_keycodes
clean up windows key mapping to use adb names codes.
2019-04-08 06:27:40 -05:00
Dagen Brock
adc7e778a1
Merge pull request #70 from ksherlock/host_fst_p8_fix
host fst fix when switching to prodos-8
2019-04-08 06:25:35 -05:00
Dagen Brock
1021431651
Merge pull request #69 from ksherlock/fflush_stderr
Good catch.  Thanks
2019-04-08 06:19:22 -05:00
Kelvin Sherlock
091b020876 clean up windows key mapping to use adb names codes. also fixes a few mistakes with keypad values. 2019-04-07 11:21:54 -04:00
Kelvin Sherlock
865b3d901b host fst fix
reported in c.e.a2 - when dropping into p8, fst_shutdown is called.  when returning to gs/os, fst_startup is NOT called.

This effective unmounts the host file system, permanently, since it assumed fst_startup would get called again.

fst_shutdown code now closes any open files but does not otherwise unmount.
2019-04-07 10:38:35 -04:00
Kelvin Sherlock
1433791eaa fflush stderr since MSVCRT's stdio doesn't support line-oriented buffering, as it should. 2019-04-07 10:35:06 -04:00
Dagen Brock
5fe0ce52b2 Merge branch 'win-build-fix' into 'master'
add definition

See merge request dbrock/gsplus!14
2019-03-28 18:01:49 +00:00
Dagen Brock
3f8cce8286 add definition 2019-03-28 12:45:27 -05:00
Dagen Brock
1dd1677eac
Merge pull request #65 from ksherlock/ptr2word
cleanup pointer to integer casting
2019-03-27 08:23:35 -05:00
Dagen Brock
00e8bbd3e2
Merge pull request #64 from ksherlock/mli_fix
unix host mli bug fixes
2019-03-27 08:17:05 -05:00
Dagen Brock
a4442e6ea8
Merge pull request #63 from ksherlock/adb_keycodes
replace hard coded ADB keycode with nice enums.
2019-03-26 21:49:03 -05:00
Dagen Brock
da21cc54f7
Merge pull request #62 from ksherlock/win_ll_keyboard
Add Low-Level hook for Windows keyboard events
2019-03-26 21:47:02 -05:00
Kelvin Sherlock
22e488df30 GCC's documentation states that __LP64__ is defined if sizeof(void *) == 8 and sizeof(int) == 4. Well, under mingw64 that doesn't seem to be true. And it causes lots of warnings.
Anyhow, as of c99, stdint.h defines a type specifically for casting pointers to integers. It also defines fixed size types so no need to guess or sniff compilers.
2019-02-18 12:38:15 -05:00
Kelvin Sherlock
e9e9fcfd59 host mli - opening/closing a directory would close fd 0 (aka stdin). 2019-02-17 22:26:52 -05:00
Kelvin Sherlock
b6406159bd unix host mli bug fixes
1. file/directory  storage types were reversed
2. month was off-by-one.
2019-02-17 18:47:32 -05:00
Kelvin Sherlock
86285cc43d replace hard coded ADB keycode with nice enums.
There are also a couple fixes in the SDL keymap (home key, {, }, keypad numbers)

xdriver isn't updated because I don't care about x.
win32 driver isn't updated pending other win32 keymap patch.
2019-02-17 14:22:38 -05:00
Kelvin Sherlock
61858c4d62 Add Low-Level hook for Windows keyboard events
windows, alt, and control keys are handled separately, before windows can get a chance to act on them. This makes win usable as an option key and prevents things like alt-esc from minimizing the window.
Some combos (alt-control-delete, windows-L, etc) cannot be blocked.
2019-02-08 20:59:15 -05:00
Dagen Brock
1c8e2aecc4
Merge pull request #61 from ksherlock/master
more win32 focus fixes
2019-02-08 15:10:35 -06:00
Kelvin Sherlock
a76d26a0ad drop all keys when window no longer active (not jut loss of focus). Also drop all pending keys that haven't been sent to the ADB yet. 2019-02-07 23:09:53 -05:00
Dagen Brock
2cde38ba3c
Merge pull request #57 from ksherlock/option_return
remove warning about parse_cli_options not returning a value.
2019-01-30 11:13:14 -06:00
Dagen Brock
225dca264d
Merge pull request #56 from ksherlock/cmake-3
cmake support.
2019-01-30 11:12:26 -06:00
Kelvin Sherlock
5f2a5e4348 remove warning about parse_cli_options not returning a value. 2018-12-13 21:50:43 -05:00
Kelvin Sherlock
e37e50affe cmake support.
cmake generates makefiles (or ninja file, xcode projects, etc) which are then built with make, ninja, xcode, etc.

usage:

make build # don't build in the source tree itself
cd build
cmake ../src/

then

make as usual.

It should work with OS X, Linux, and Win32 (tested on Windows with msys2 / mingw64, IIRC, using the win32 driver).

"make bundle" will run the OS X bundle utility to bundle up libraries.
2018-12-13 20:53:58 -05:00
Dagen Brock
df0833994a
Merge pull request #51 from digarok/v0.14
V0.14
2018-09-11 17:25:46 -05:00
Dagen Brock
5e009305f8 v0.14 release 2018-09-11 17:06:05 -05:00
Dagen Brock
fba7d6c89d partially realized delta mouse handler (hidden in shift-F5 for now) 2018-09-07 09:29:46 -05:00
Dagen Brock
489f1310a6
Merge pull request #49 from digarok/fix_keymap_intl
use SDL keycode whenever possible
2018-08-31 10:30:59 -05:00
Dagen Brock
61d672f635 use SDL keycode whenever possible
- tested with US 101 key on US keyboard and it worked fine with this switch, but need users with international keyboards to test behavior on their end
2018-08-31 10:18:41 -05:00
Dagen Brock
e2150dd0d2
Merge pull request #47 from digarok/sdl_enhancements
add scaling options and fix speedups
2018-08-30 10:14:44 -05:00
Dagen Brock
7df808cf4a add scaling options and fix speedups 2018-08-30 09:55:10 -05:00
Dagen Brock
6ebebfa2e8
Merge pull request #46 from digarok/menu_sorting_fixes
Menu sorting fixes
2018-08-28 11:40:44 -05:00
Dagen Brock
710e2cd067 always alpha sort and cleaner hotkeys in file menu 2018-08-28 10:51:54 -05:00
Dagen Brock
6ec560ca49 only grab mouse in fullscreen for now 2018-08-27 12:16:57 -05:00
Dagen Brock
48bad8a432 cleaner shutdown / mouse code for SDL 2018-08-27 11:21:59 -05:00
Dagen Brock
712c0792bf
Merge pull request #45 from digarok/sdl2_performance_profile
fix sdl frame rendering vsync method to simply present the buffer once per frame
2018-08-26 14:23:12 -05:00
Dagen Brock
ff39749feb fix sdl frame rendering vsync method to simply present the buffer once per frame 2018-08-26 13:59:39 -05:00
Dagen Brock
17f22c3393 fix sdl2 keymap on non-apple systems and add rpi doc 2018-08-24 23:20:47 -05:00
Dagen Brock
12ec7c4fa9 proper SDL shutdown - fixes exit on RPi HW accel version 2018-08-24 14:18:44 -05:00
Dagen Brock
632d824a8c
Merge pull request #43 from digarok/sdl2_performance_improvement
add vsync flag for great success
2018-08-24 13:13:06 -05:00
Dagen Brock
ed817c15fe add vsync flag for great success 2018-08-24 12:45:51 -05:00
Dagen Brock
931d2cb626
Merge pull request #42 from digarok/win_build_fixes
resolve builds on windows with new fst objects
2018-08-24 12:00:31 -05:00
Dagen Brock
9b708a2ad8 resolve builds on windows with new fst objects 2018-08-24 11:40:25 -05:00
Dagen Brock
16b131d1f9
Merge pull request #41 from ksherlock/prodos_mli
Prodos mli (win32 edition)
2018-08-24 05:28:37 -05:00
Dagen Brock
02f8357935
Merge pull request #16 from sicklittlemonkey/master
Fix F4 can exit app after Alt-Tab
2018-08-24 05:14:29 -05:00
Dagen Brock
26ac5bc51a
Merge branch 'master' into master 2018-08-24 05:12:46 -05:00
Kelvin Sherlock
fcf8dea873 host mli - convert cygwin paths to Win32 paths before using with Win32 API. 2018-08-23 20:47:09 -04:00
Kelvin Sherlock
2b38b6bf8d win32 prefix fix. 2018-08-23 15:27:23 -04:00
Dagen Brock
b9cc7ad25c
Merge pull request #40 from digarok/rpi_sdl2
pi build with sdl2
2018-08-23 13:50:49 -05:00
Dagen Brock
27a0d34dff pi build with sdl2 2018-08-23 18:35:41 +00:00
Kelvin Sherlock
7b66b3a070 bug fixes and more cleanup 2018-08-23 10:56:09 -04:00