Commit Graph

953 Commits

Author SHA1 Message Date
Joseph Cloutier
9a9b89ae06 Merge branch 'develop' into 8.2.0-Dev 2023-08-17 21:07:12 -04:00
Josh Tynjala
987e3dd425 Merge branch 'develop' into 8.1.0-Dev 2023-08-14 15:53:18 -07:00
Zeta
26247f4f41 Fix string conversion in hl_window_alert. 2023-06-11 13:42:40 +02:00
Joshua Granick
a46eecc831 Disable try_blocking for now (requires HXCPP 4.3+) 2023-06-07 18:12:01 -07:00
Josh Tynjala
9e2d431e2b Merge branch 'develop' into 8.1.0-Dev 2023-06-06 12:35:57 -07:00
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
f053205b7e Merge branch 'develop' into 8.1.0-Dev 2023-06-05 14:29:12 -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
Joshua Granick
35d1436dcd Revert WebAssembly improvements (moved to 8.1.0-Dev branch) 2023-05-30 09:03:18 -07:00
Joshua Granick
58275329cc Minor WebAssembly adjustments 2023-05-30 08:54:19 -07:00
Joshua Granick
79e11e4270 Minor main loop change for Emscripten 2023-05-30 08:54:09 -07:00
Joshua Granick
be19381999 Emscripten fixes 2023-05-30 08:46:52 -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
eec6e5e0fa Emscripten fixes 2023-05-19 23:10:16 -07:00
EliteMasterEric
a7b83cb688 Removed Joystick trackball support. 2023-05-11 20:22:27 -04:00
Josh Tynjala
ab0cdc057d Merge branch '8.1.0-Dev' into 8.2.0-Dev 2023-04-24 14:01:04 -07:00
Josh Tynjala
ed3d7efe19 Merge branch 'develop' into 8.1.0-Dev 2023-04-24 09:52:11 -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
f07e94708b Window: minWidth/minHeight/setMinSize and maxWidth/maxHeight/setMaxSize 2023-04-11 09:46:10 -07: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
Josh Tynjala
2b8e3c439e Merge branch '8.1.0-Dev' into 8.2.0-Dev 2023-03-20 09:44:45 -07:00
jf
aefce3c4ae change hl_al_filteri argument type 2023-03-17 18:14:42 +00:00
Josh Tynjala
33c8a79ddd ExternalInterface: fix lime_window_set_visible on HL (wrong signature) 2023-03-16 09:36:08 -07:00
Josh Tynjala
0160c12311 Window: visible property to show and hide window 2023-03-16 08:41:56 -07:00
Josh Tynjala
2f4b0844ef Merge pull request #1531 from player-03/submodules
Restructure and update submodules
2023-01-13 13:44:33 -08:00
Josh Tynjala
8e3aa8afff FileDialog: fix case where no file extension filters are specified 2022-12-16 14:50:29 -08:00
Josh Tynjala
52b7b4d574 FileDialog: use delete[] to match new[] 2022-12-16 14:50:11 -08:00
Josh Tynjala
8d6a496625 FileDialog: non-Windows support for multiple file extension filters in OpenFile/OpenFiles (closes #2600) 2022-12-16 14:50:11 -08:00
Josh Tynjala
41064e57b4 FileDialog: Windows support for multiple file extension filters in OpenFile/OpenFiles (references #2600) 2022-12-16 14:50:11 -08: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
player-03
ea1c233251 Merge branch 'openfl:develop' into submodules 2022-12-01 11:58:25 -05:00
player-03
63d2f896fb Merge pull request #1597 from player-03/remove_kha
Remove the defunct Kha backend.
2022-11-18 14:07:20 -05: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
player-03
fe6f1db7fd Merge pull request #1579 from ShaharMS/develop
Implement `clickCount` on HTML5 and Native.
2022-10-10 13:32:34 -04:00
player-03
9ac49f148c Fix spacing. 2022-10-01 13:24:15 -04:00
Shahar Marcus
716c90eef1 fixed signature mismatch 2022-09-13 20:51:27 +03:00
Shahar Marcus
1e45cbea7a another attempt to fix the signature error 2022-09-13 20:16:55 +03:00
ShaharMS
5a18ed4f1a implementation in SDLApplication, fix in MouseEvent.cpp 2022-09-13 13:05:25 +03:00
ShaharMS
17e8b1c065 added clickCount to MouseEvent files 2022-09-13 12:52:40 +03:00
player-03
f69c5a5d5c Sort function declarations. 2022-08-12 12:17:30 -04:00
player-03
42e3450614 Sort functions and standardize formatting.
The new version no longer checks the return code of `SDL_GetWindowOpacity`, for consistency with the other getters. In theory this should be fine, because the only documented error condition is if the window is invalid, at which point none of the getters matter. If the platform doesn't support transparency, "opacity will be reported as 1.0f without error."
2022-08-12 12:16:26 -04:00
player-03
af05054ce5 Sort function definitions. 2022-08-12 11:59:28 -04:00
player-03
efcbc622bd Change spaces to tabs
Missed this one the first time.
2022-08-12 11:55:19 -04:00
player-03
2e92df9b89 Standardize formatting 2022-08-12 11:53:59 -04:00