Commit Graph

1149 Commits

Author SHA1 Message Date
Josh Tynjala
aebf139dc7 Fix window show/hide on desktop being incorrectly considered the same as app going into and out of the background/suspend on mobile
The app's Timers should still continue when a window is hidden. Especially since an app could have multiple windows, with some being shown and some being hidden. If only one were hidden, the other shown windows would clearly behave in a broken manner because the one hidden window would cause all app timers, even those associated with other windows, to be paused.

Introduces new WINDOW_SHOW AND WINDOW_HIDE events from C++ to Haxe, and new onShow and onHide events on Haxe Window.

Followup to 0918ee2381
2023-06-06 10:56:06 -07:00
Josh Tynjala
0918ee2381 SDLApplication: fix inconsistent setting of inBackground flag when dispatching WINDOW_DEACTIVATE and WINDOW_ACTIVATE (closes openfl/openfl#2645)
On SDL_APP_WILLENTERBACKGROUND and SDL_APP_DIDENTERFOREGROUND, inBackground was being toggled, but it was not toggled on SDL_WINDOWEVENT_SHOWN and SDL_WINDOWEVENT_HIDDEN. However, both pairs were dispatching WINDOW_DEACTIVATE and WINDOW_ACTIVATE from C++ to Haxe. When inBackground wasn't toggled, the UPDATE ApplicationEvent continued being dispatched from the C++, but the Haxe assumed that it wouldn't be. This meant that timers were still updated after WINDOW_DEACTIVATE for SDL_WINDOWEVENT_HIDDEN, but then they were still "advanced" as if paused on WINDOW_ACTIVATE for SDL_WINDOWEVENT_SHOWN. The next update time would be some time in the future, roughly equal to how long the Haxe thought the timers were paused. This could make it seem like the timers completed stopped updating, especially if they should have been paused for a long time. They would eventually continue, but they should have paused on WINDOW_DEACTIVATE and continued immediately on WINDOW_ACTIVATE.
2023-06-05 14:22:19 -07:00
Josh Tynjala
de773dd6b6 mbedtls v3.3.0
Restores Android NDK r15c compatibility
2023-05-30 09:03:55 -07:00
Josh Tynjala
9103be3c98 update curl and mbedtls submodules
Updated to match 8.2.0-Dev branch

Fixes SSL connect error on macOS
2023-05-30 09:03:55 -07:00
Joshua Granick
35d1436dcd Revert WebAssembly improvements (moved to 8.1.0-Dev branch) 2023-05-30 09:03:18 -07:00
Joshua Granick
2406ff4b94 Minor WebAssembly adjustments 2023-05-24 12:37:17 -07:00
Joshua Granick
de5844aae1 Minor main loop change for Emscripten 2023-05-23 20:49:54 -07:00
Joshua Granick
5ba432fd8b Revert back to built-in Emscripten OpenAL implementation 2023-05-23 20:28:53 -07:00
Joshua Granick
22fb444e71 Include cURL and MojoAL in WebAssembly/Emscripten build 2023-05-23 19:53:10 -07:00
Joshua Granick
550a5671a2 Update cURL 2023-05-23 19:52:45 -07:00
Joshua Granick
d80ed56bf5 Update cairo 2023-05-23 15:37:03 -07:00
Joshua Granick
eec6e5e0fa Emscripten fixes 2023-05-19 23:10:16 -07:00
tobil4sk
7c9a1894f6 Take const char pointers in lime::Font methods 2023-04-21 19:11:38 +01:00
player-03
539e84dc7c Merge pull request #1648 from jobf/feature/open-al-efx-hl-invalid-param
Fix OpenAL binding AL.filteri for hashlink
2023-04-16 14:43:17 -04:00
Josh Tynjala
a68e9c4b8e ExternalInterface: fix error from missing header on Linux in commit 95411acb8c 2023-03-28 13:00:23 -07:00
Josh Tynjala
95411acb8c ExternalInterface: fix conversion of std::wstring to std:string on non-Windows systems for file dialog functions (closes #1622) 2023-03-28 12:06:41 -07:00
jf
aefce3c4ae change hl_al_filteri argument type 2023-03-17 18:14:42 +00:00
Josh Tynjala
53a1b80350 FileDialog: fix case where no file extension filters are specified 2022-12-16 14:37:39 -08:00
Josh Tynjala
d9e2a4ab71 FileDialog: use delete[] to match new[] 2022-12-16 13:01:42 -08:00
Josh Tynjala
38e3205bac FileDialog: non-Windows support for multiple file extension filters in OpenFile/OpenFiles (closes #2600) 2022-12-16 12:38:40 -08:00
Josh Tynjala
0746928f39 FileDialog: Windows support for multiple file extension filters in OpenFile/OpenFiles (references #2600) 2022-12-16 10:34:38 -08:00
Josh Tynjala
4c821525b4 CURLBindings: fix "Send failed since rewinding of the data stream failed" error with 302 redirect
When CURLOPT_READDATA is specified, not only must we set CURLOPT_READFUNCTION, but we must also set CURLOPT_SEEKFUNCTION to ensure that the data can be resent if there's a redirect.
2022-10-13 11:56:53 -07:00
mgambrell
0125e939a9 vorbisfile.cpp - change free(x) to delete x (fixes #1556) 2022-07-04 00:00:38 -05:00
Josh Tynjala
81d682d355 Window: add new setTextInputRect() method to optionally specify the location of the input when textInputEnabled is set to true
On native, this uses SDL_SetTextInputRect
2022-06-09 14:14:05 -07:00
Apprentice-Alchemist
1c35f44634 Fix building lime.hdll. 2022-05-19 21:08:56 +02:00
Apprentice-Alchemist
ad70700a14 Try to fix Windows mess a bit.
Default to 64 bit on windows too.
2022-05-19 20:46:08 +02:00
Apprentice-Alchemist
b2546aac9f Try fixing macOS and support no_console Windows subsystem. 2022-05-18 08:11:44 +02:00
Apprentice-Alchemist
0238825884 Update hashlink to 1.12. 2022-04-28 19:45:59 +02:00
Apprentice-Alchemist
3a55a30fad Add some include paths, to try and make mac work. 2022-04-28 19:42:51 +02:00
Apprentice-Alchemist
50cc49c66d Fix filewatcher RemoveDirectory issue.
Windows headers define RemoveDirectory as RemoveDirectoryA.
system/FileWatcher.h needs to be included after any headers that might include windows headers.
2022-04-28 19:42:50 +02:00
Apprentice-Alchemist
442c219fb5 Add more libs for libuv. 2022-04-28 19:42:50 +02:00
Apprentice-Alchemist
de24e7bc4b Fix INT32 redefined error in libjpeg. 2022-04-28 19:42:49 +02:00
Apprentice-Alchemist
0f8c5a69f2 Fix typo. 2022-04-28 19:42:49 +02:00
Apprentice-Alchemist
abdf1450fd Why the hell are we still doing 32 bit. 2022-04-28 19:42:48 +02:00
Apprentice-Alchemist
c2595b908d Fixup CI, and some includes. 2022-04-28 19:42:48 +02:00
Apprentice-Alchemist
4c001e1169 Also build fmt, ui and uv libraries. 2022-04-28 19:42:47 +02:00
Apprentice-Alchemist
d6b3e826d4 Update hashlink. 2022-04-28 19:42:47 +02:00
Apprentice-Alchemist
f544134144 Fix libpaths. 2022-04-28 19:42:45 +02:00
Apprentice-Alchemist
a44fe3669a Put hashlink binaries in templates/bin again.
Add setup script for macOS codesigning.
2022-04-28 19:42:45 +02:00
Apprentice-Alchemist
5c2e5577ab Set android platform to 21 in BuildHashlink.xml. 2022-04-28 19:42:44 +02:00
Apprentice-Alchemist
aa62d786b3 Add some more -pthread. 2022-04-28 19:42:44 +02:00
Apprentice-Alchemist
054c20171d Try fixing mac and linux some more. 2022-04-28 19:42:44 +02:00
Apprentice-Alchemist
2d2e6458f7 Fix macOS and Linux CI. 2022-04-28 19:42:43 +02:00
Apprentice-Alchemist
b72f45ed16 Only copy libhl.lib on Windows. 2022-04-28 19:42:43 +02:00
Apprentice-Alchemist
97f718b291 Link with libpthread. 2022-04-28 19:42:42 +02:00
Apprentice-Alchemist
e4793346cc Make windows work, install required packages on macOS. 2022-04-28 19:42:42 +02:00
Apprentice-Alchemist
9ced08920a Update hashlink. 2022-04-28 19:42:41 +02:00
Apprentice-Alchemist
a288feca96 Add hashlink as a submodule. 2022-04-28 19:42:41 +02:00
Apprentice-Alchemist
c394aea8f1 Rename a few functions.
Currently there's conflicts between the names in the C code, and the names the haxe compiler would expect for HL/C.
This commit fixes those conflicts.
2022-04-28 19:42:40 +02:00
Apprentice-Alchemist
a3b3d8593f Update hashlink. 2022-04-28 19:42:40 +02:00