Commit Graph

626 Commits

Author SHA1 Message Date
Josh Tynjala
6e8fb70d04 Application: extract the auto exit behavior into a separate method from __removeWindow()
This will allow OpenFL to override the behavior based on the NativeApplication class.
2022-10-10 13:27:36 -07:00
player-03
54c5ea4542 Merge pull request #1551 from player-03/replaceVariable
Expose more information to project.xml users.
2022-10-10 13:41:59 -04:00
player-03
59eedb6aa6 Merge pull request #1539 from player-03/JNI
Parse JNI class names more intelligently.
2022-10-10 13:37:11 -04:00
player-03
76e1df8ef4 Merge pull request #1538 from player-03/programPath
Allow running native apps from other directories.
2022-10-10 13:35:54 -04: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
9204858082 Merge pull request #1570 from Apprentice-Alchemist/feature/window-opacity
Implement window transparency.
2022-10-10 13:32:18 -04:00
player-03
a37e139bdd Add missing space. 2022-10-10 11:18:46 -04:00
player-03
94f791e34b HTML5Window: unset clickCount once done.
It's meant as an extra argument to `dispatch()`, so once `dispatch()` returns, it's technically incorrect for anything to access it.
2022-10-09 19:08:33 -04:00
player-03
25491e51c8 NativeApplication: unset clickCount once done.
It's meant as an extra argument to `dispatch()`, so once `dispatch()` returns, it's technically incorrect for anything to access it.
2022-10-09 19:07:28 -04:00
player-03
7d9aa709b4 Fix more spacing. 2022-10-01 13:21:30 -04:00
player-03
c4147262a4 Fix spacing. 2022-10-01 13:20:25 -04:00
Shahar Marcus
bf04e38e2e Fix for touch (thanks @player-03) 2022-10-01 20:01:45 +03:00
Shahar Marcus
56f7a42992 fix an oversight when setting clickCount
for some reason I'm assigning clickCount after dispatching the event. that means we're always one click behind.
2022-10-01 12:57:00 +03:00
Shahar Marcus
361d71d06d On touch events, clickCount should not increase. 2022-10-01 12:51:36 +03:00
Shahar Marcus
db4fec7ae2 Removed accidental Int64 import 2022-10-01 12:46:12 +03:00
ShaharMS
b18d1d60a1 Fix clickCount always resetting to 0 2022-09-21 12:30:04 +03:00
ShaharMS
20c96e6378 html5 fix 2022-09-18 09:32:24 +03:00
ShaharMS
bc13010634 remove breaking change from html5 2022-09-18 09:22:07 +03:00
ShaharMS
4421d2daf0 removed breaking changes 2022-09-18 09:18:44 +03:00
Sam! Bonfante
4b02ba5e4b Catch null pointer exception
NPE was occurring in setPosition where parent.buffer was undefined.
2022-09-17 18:20:49 -04:00
Shahar Marcus
1e45cbea7a another attempt to fix the signature error 2022-09-13 20:16:55 +03:00
Shahar Marcus
5bcea64afb quick fixes, should fix signature error
when compiling, i get this error:

FATAL ERROR : Invalid signature for function lime@hl_mouse_event_manager_register : PP_vOiiddiidd__v required but PP_vOiddiidd__v found in hdll

This should fix it
2022-09-13 17:44:35 +03:00
ShaharMS
dd3117adc1 added clickCount to lime's haxe files
cffi binding are uneeded because they pass dynamics, added the information for NativeApplication, Window, Application
2022-09-13 13:23:06 +03:00
player-03
f9827cf47e Standardize formatting. 2022-09-07 15:57:53 -04:00
player-03
063cd0ab3b Merge pull request #1558 from Stencyl/fix-ios-sound-pop
Don't set AL.BYTE_OFFSET immediately after calling AL.sourcePlay
2022-09-07 15:56:56 -04:00
player-03
637067932b Merge pull request #1540 from player-03/linux_clipboard
Work around unreliable clipboard on Linux.
2022-09-06 00:28:29 -04:00
player-03
2dbe7757ad Merge pull request #1537 from player-03/isLocal
Check all asset types if `type == null`.
2022-09-05 23:01:43 -04:00
player-03
80630a10fa Merge pull request #1447 from chatziko/rootPath-improvements
rootPath-related improvements
2022-09-05 22:56:53 -04:00
player-03
f2ffb83b45 Merge pull request #1528 from junsred/focus-back-to-textInput-after-setting-clipBoard
focus back to textInput after setting clipBoard
2022-09-05 22:53:57 -04:00
Joseph Cloutier
214b5a526a Improve clipboard documentation.
I managed to track down the relevant lines of code, and they're actually
in SDL_x11clipboard.c rather than either of the files I suspected.
2022-09-05 22:25:13 -04:00
player-03
52bc8e40c9 Add explanatory comment. 2022-09-03 15:41:18 -04:00
player-03
f38119d181 Merge branch 'develop' into rootPath-improvements 2022-09-03 15:22:26 -04:00
player-03
312cccfeeb Merge pull request #1577 from player-03/icon_priorities
Don't prioritize SVG icons.
2022-09-03 14:54:20 -04:00
Josh Tynjala
4b04674ea4 JNI: use doc_gen instead of lime_doc_gen to allow OpenFL API docs to build 2022-09-01 18:15:41 -07:00
Chris Speciale
d4bcb31d06 Fix typo 2022-09-01 14:00:42 -04:00
Chris Speciale
31918f61cf NativeHTTPRequest: Fix buffer management for neko 2022-09-01 09:51:49 -04:00
player-03
f177e62edf Don't prioritize SVG icons.
Instead, assume that any icon without a specified size can scale freely. This will typically still include SVGs.
2022-09-01 03:36:22 -04:00
Shahar Marcus
d5bac69ff7 Update FileDialog.hx
FileDialog.browse fixed for OPEN_FILE, OPEN_DIRECTORY. I changed formatting of the null check on SAVE to match the formatting in the file.
2022-08-30 09:28:55 -07:00
player-03
6b2724b147 Use getters and setters for Window.opacity. 2022-08-12 12:41:43 -04:00
player-03
13c33d83f4 Start sorting NativeWindow functions.
There's more to sort, but moving them all at once messes up the diff.
2022-08-12 12:32:54 -04:00
player-03
a6323f323f Sort CFFI functions. 2022-08-12 12:27:51 -04:00
player-03
2903975465 Sort functions. 2022-08-12 12:22:27 -04:00
player-03
7b06d6a38a Sort functions. 2022-08-12 12:19:38 -04:00
Apprentice-Alchemist
399c1a3ba7 Missing function bodies. 2022-08-05 15:54:00 +02:00
Apprentice-Alchemist
57ef1223bc Fix typo. 2022-08-05 13:35:27 +02:00
Apprentice-Alchemist
1c8c6c1a5e Implement window transparency. 2022-08-04 22:00:49 +02:00
Chris Speciale
7a9a881b22 Remove TODO
...Unfortunately, after a little bit of testing and a lot more thought and consideration, I've realized there really isn't a way to do this without doubling the allocation. Ouch.
2022-07-28 18:01:10 -04:00
Chris Speciale
4fdaefac23 Add TODO 2022-07-28 17:09:23 -04:00
Justin Espedal
3644549574 Fix NativeHTTPRequest.loadText
Followup to these two commits:
02617a854d
ad3a632927

In the second commit, the buildBuffer call in HTTPRequest was
found to conflict with the way local requests are made, with the
bytes being set directly. So buildBuffer was moved to NativeHTTPRequest
instead. Upon promise completion, now, the value of bytes should always
be correct, and buildBuffer need not be called.

But buildBuffer is called again in NativeHTTPRequest.loadText. For local
requests, this will lead to the same problem that the second commit
fixed (presumably), and for network requests, this leads to the nulled
out buffer being accessed a second time, resulting in a crash.

So since the received value of bytes is already correct and buildBuffer
is harmful, the buildBuffer call is removed from loadText.
Both local and network requests are happy now!
2022-07-22 23:19:46 +09:00
Josh Tynjala
862fe55b1c Preloader: use ObjectMap instead of Map with bytesLoadedCache so that Dynamic can be a key when disable_preloader_assets flag is set 2022-07-20 11:54:21 -07:00