Commit Graph

5265 Commits

Author SHA1 Message Date
player-03
b85fc0743f Merge pull request #1683 from EliteMasterEric/feature/remove-trackballs
Removed Joystick trackball support.
2023-05-11 23:33:02 -04:00
EliteMasterEric
7d4a5bc2e6 Correct enums to ensure values are not changed when removing trackball event. 2023-05-11 20:40:37 -04:00
EliteMasterEric
a7b83cb688 Removed Joystick trackball support. 2023-05-11 20:22:27 -04:00
player-03
2b3fe0ac0d Add .git suffix.
GitHub may be the only one that allows urls without the suffix.
2023-04-24 17:51:52 -04:00
player-03
2fc023f1e6 Refer to official Cairo and Pixman repos.
The GitHub mirrors seem to have been taken down or made private.
2023-04-24 17:49:43 -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
1a71249c09 actions: needs JDK 11 for android-samples
Uses JDK 11 for android-ndll too, for consistency
2023-04-24 11:51:58 -07:00
Josh Tynjala
ed3d7efe19 Merge branch 'develop' into 8.1.0-Dev 2023-04-24 09:52:11 -07:00
player-03
523292235c Merge pull request #1671 from tobil4sk/fix/font-char-ptrs
Take const char pointers in lime::Font methods
2023-04-21 19:49:12 -04:00
tobil4sk
7c9a1894f6 Take const char pointers in lime::Font methods 2023-04-21 19:11:38 +01:00
player-03
79eed06b74 Merge pull request #1663 from andresa88/bugfix/compatibility-fix-for-when-using-es-modules
Fixed JS Image issue when using the genes library to compile ES modules
2023-04-17 19:20:04 -04:00
Josh Tynjala
ef5edc0dfb actions: temporarily require hxcpp 4.2.1 until HaxeFoundation/hxcpp#1042 is released 2023-04-17 14:58:37 -07:00
Josh Tynjala
7d4d20df9e actions: build html5 samples with genes to ensure that it doesn't break 2023-04-17 14:30:00 -07:00
player-03
9f9604e0c8 Restore untyped keyword.
I meant to move this to right before `__js__` because it's only needed in Haxe 3, but forgot. Also, I realized Lime always puts it before the `#if`, so I just put it back where it was.
2023-04-17 14:23:29 -04:00
player-03
0535ae0266 Always call new window.Image(), for consistency. 2023-04-17 14:21:44 -04:00
player-03
e14d3e24d6 Always call new window.Image(), for consistency.
There's no practical downside to doing this, and it makes Lime compatible with tools that act like genes but aren't named "genes."
2023-04-17 14:19:15 -04:00
andresa88
fb5d64dc79 Fixed an HTML Image issue when using the genes library to compile ES modules. Need to explicitly use: new window.Image() 2023-04-17 10:06:24 -07:00
player-03
1951c30d05 Merge pull request #1653 from player-03/lime.ndll-error-message
Improve "Could not find NekoAPI interface" message.
2023-04-16 17:31:34 -04:00
player-03
3bb936c37d Merge pull request #1657 from player-03/html5-now
Use `performance.now()` for HTML5 timing.
2023-04-16 17:28:02 -04:00
player-03
ee4bcb5b65 Merge pull request #1604 from MAJigsaw77/patch-2
Use `getDisplayMetrics()` to find screen DPI on Android.
2023-04-16 14:51:12 -04:00
player-03
766db267b1 Merge pull request #1626 from dpomier/patch-1
Allow Assets.registerLibrary() for default library
2023-04-16 14:45:32 -04: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
player-03
16f96fadf7 Merge pull request #1494 from player-03/include.hxp
Add support for include.hxp.
2023-04-16 14:02:27 -04:00
player-03
9ebe6f3b60 Merge pull request #1593 from Sirox228/patch-2
remove arguments limit in jni
2023-04-16 13:58:59 -04:00
player-03
a44098946d Merge pull request #1654 from player-03/lime.ndll-forward-slashes
Use forward slashes to load lime.ndll.
2023-04-16 13:40:43 -04:00
player-03
b560468088 Merge pull request #1656 from player-03/password-input-android
Use "password" text input only on Android.
2023-04-16 13:29:57 -04:00
Joseph Cloutier
f1dec33ef0 Use performance.now() for HTML5 timing.
This way, changing the computer clock can't mess up animations. (Unless
we're using the fallback, in which case everything will act as before.)
2023-04-16 13:21:51 -04:00
player-03
60be6d1d5d Merge pull request #1662 from player-03/promise-macro-generic
Remove `@:generic` from `Promise` at macro time.
2023-04-16 13:16:44 -04:00
player-03
9be759826a Exclude more code from macros. 2023-04-15 20:36:54 -04:00
player-03
c00589c189 Use original haxe.Timer in macros.
During macros, `System.getTimer()` falls through to `Sys.time()`, which is the same thing the original `haxe.Timer` uses. Therefore this change produces the same behavior but reduces the number of classes imported, which may help prevent errors.
2023-04-15 20:29:33 -04:00
player-03
88b6a7e14b Remove @:generic from Promise at macro time.
This prevents an inconsistent "Field has no new expression" bug.
2023-04-15 14:57:19 -04:00
Josh Tynjala
f8ec10b969 AIRHelper: allow listen=port in <config:air/> to use USB debugging instead of wifi debugging for Adobe AIR apps on Android or iOS 2023-04-13 15:42:05 -07:00
Josh Tynjala
1ac0810895 XcodeHelper: search for default iPhone simulator device id with a regular expression instead of a specific string
Previously, the value was "iphone-11". Now the regex is ~/iphone-\d+/g

As long as the naming scheme stays the same, this should choose the newest iPhone supported by Xcode, and we won't need to update manually anymore, like in commit 72dd60f1c8
2023-04-11 16:02:17 -07:00
Josh Tynjala
04b69a9cef AIRHelper: display a warning when no selected iOS simulator is found when building AIR for iOS app
Ideally, we'd always get a simulator name, but better to fail gracefully
2023-04-11 15:51:56 -07:00
Josh Tynjala
2e19898c28 XCodeHelper: fix null exception when trying to get the ID or name of the selected iOS simulator
Ideally, it shouldn't return null, but if it does, fail gracefully
2023-04-11 15:50:53 -07:00
Josh Tynjala
e753c5c933 AIRHelper: fix failed Adobe AIR for iOS build on Windows
It was incorrectly trying to list simulators from Xcode (and Xcode, obviously, doesn't exist on Windows)
2023-04-11 15:21:55 -07:00
Josh Tynjala
f07e94708b Window: minWidth/minHeight/setMinSize and maxWidth/maxHeight/setMaxSize 2023-04-11 09:46:10 -07:00
player-03
bd810c888d Merge pull request #1658 from player-03/setup-java-v2
Update actions/setup-java
2023-04-10 21:20:23 -04:00
player-03
8825d27cb2 Use version 3 of actions/setup-java.
Version 2 wasn't even the latest version, and still used Node 12.
2023-04-10 19:06:56 -04:00
Josh Tynjala
f34b595e70 IOSPlatform: remove armv7 from default iOS architectures because latest Xcode reports error
Fixes error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'Build Haxe' from project 'MyProject')
2023-04-10 15:20:50 -07:00
Josh Tynjala
72db242720 IOSPlatform: be explicit about armv6, just in case the default architecture used by hxcpp changes in the future
The default changed recently for the x86 simulator, so best to be safe
2023-04-10 15:03:45 -07:00
Josh Tynjala
1e6d883baf IOSPlatform: when building liblime.iphonesim.a, explicitly add -DHXCPP_M32
It looks like the new hxcpp update defaults to 64-bit now, so we need to be explicit
2023-04-10 14:58:24 -07:00
player-03
dc1a11bdac Use version 2 of actions/setup-java
GitHub is deprecating Node 12, forcing us to update any actions that rely on it. https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

actions/setup-java@v2 now requires us to specify a distribution. v1 used Zulu, so we'll just stick with that for now.
2023-04-10 17:26:00 -04:00
Josh Tynjala
f43173b942 Application: call __unregisterLimeModule on exit, similar to match the call to __registerLimeModule in the constructor
For some reason, this method was never called.
2023-04-10 13:41:14 -07:00
Josh Tynjala
ea8ed5bbe4 HTML5Window: clean up canvas/div and event listeners on window close() 2023-04-10 13:36:52 -07:00
Josh Tynjala
e9a085311e AIRApplication: check for null with Application.current 2023-04-10 13:31:40 -07:00
Josh Tynjala
906492a5b1 Application: fix handling of canceled when onExit is dispatched 2023-04-10 13:31:02 -07:00
Josh Tynjala
82ec709831 Application: on exit, clear Application.current if it is equal to this
This matches setting Application.current in the constructor, and helps avoid memory leaks
2023-04-10 12:54:48 -07:00
Josh Tynjala
23bafb2035 System: exit() on html5 "closes" the main application window 2023-04-10 12:54:37 -07:00
Josh Tynjala
48dc64373b Application: let AIR handle checking for all windows closed with its own autoExit behavior 2023-04-10 10:40:25 -07:00