Commit Graph

4290 Commits

Author SHA1 Message Date
miltoncandelero
1e40f17ba0 Haptic support on HTML5
Haptic support for HTML5 via Navigator.vibrate (https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API)

---

**note:**

w3c spec says to vibrate on even elements of the pattern and android waits on even elements.

**w3c**
> If the index of time is even (the first entry has index 0), vibrate the device for time milliseconds.

https://w3c.github.io/vibration/

**android**
> The first value indicates the number of milliseconds to wait before turning the vibrator on. 

https://developer.android.com/reference/android/os/Vibrator.html#vibrate(long[],%20int)


The code has a line that adds a zero to the pattern to make the html5 behavior match the android behavior.
2019-02-14 08:22:25 -08:00
Joshua Granick
cac82509da Add support for embedded JS dependencies (embed Lime dependencies by default) 2019-02-12 13:30:07 -08:00
Joshua Granick
3e9f875eaf Process JS using template, add support for unique statics in repeat lime.embed calls 2019-02-12 13:14:40 -08:00
Joshua Granick
d9dbea7f6b Try a hidden ApplicationMain.hx file instead 2019-02-07 16:43:42 -08:00
Joshua Granick
a6fbbe7257 Add hidden ApplicationMain macro for better code completion on new targets 2019-02-07 12:58:54 -08:00
Joshua Granick
33548982ec Ignore C++ submodules in VS Code 2019-02-07 12:58:13 -08:00
Joshua Granick
864dcf74cc Set length on cURL write 2019-02-06 11:38:50 -08:00
Joshua Granick
f37ba6f3d2 Minor fix 2019-02-06 01:43:19 -08:00
Joshua Granick
964242ae14 Use consistent data type for application frame updates 2019-02-06 01:43:04 -08:00
Skerper
c69f483757 Remove alphaview offset
Offset was causing alpha bitmap to be misaligned
2019-02-05 20:40:11 -08:00
Skerper
4595ac7d80 Remove offset from alpha image
Offset was causing the alpha image to be misaligned
2019-02-05 20:40:11 -08:00
Jens Fischer
ee0c4a88c9 Hide __ASSET__ classes with @:noCompletion 2019-02-05 20:39:12 -08:00
Joshua Granick
ba6cc18fee Clean up Haxe XML Fast/Access imports 2019-01-22 15:01:09 -08:00
Joshua Granick
820686f110 Compile fix 2019-01-21 13:16:11 -08:00
Joshua Granick
07a57d9548 Update howler.js to 2.1.1 (resolve #1279) 2019-01-21 12:36:36 -08:00
Joshua Granick
ed7cf4fbb7 Queue the Multi thread again if there's a pending request in the queue (#1276) 2019-01-21 12:32:53 -08:00
Joshua Granick
e582f8f6b4 Use thread to speed up cURL Multi in native HTTPRequest (resolve #1276) 2019-01-18 10:52:55 -08:00
Joshua Granick
0c73e47b28 Minor cleanup in CURLBindings 2019-01-18 10:51:42 -08:00
Joshua Granick
ac7b0914b9 Fix types for events in ThreadPool 2019-01-18 10:51:18 -08:00
Joshua Granick
b9f62558fb Minor AndroidPlatform fix when using ARMv5 or ARMv6 only 2019-01-17 12:40:05 -08:00
Thomas Byrne
e7ec14795e NPM package.json name property can't have non-URL safe characters, so it's more suited to using the 'packageName' than the 'title'.
This also helps when using tools like electron-packager, which use the package name as a folder name.

Spec:
https://docs.npmjs.com/files/package.json
2019-01-17 00:12:09 -08:00
Joshua Granick
4bd853dfb1 Static build fix (resolve #1278) 2019-01-11 20:41:12 -08:00
Joshua Granick
4f5c9a0987 Don't init audio if unused 2019-01-11 16:08:01 -08:00
Joshua Granick
f32311e2fd Update to SDL 2.0.9 2019-01-11 16:07:35 -08:00
Joshua Granick
fe6548d791 HL fixes 2019-01-10 11:43:47 -08:00
Joshua Granick
9e078204a7 Add workaroudnd for onDropFile behavior on HTML5 (for now) 2019-01-09 12:05:16 -08:00
Lars Doucet
dcd09eb74a fix compiling on mac (#1277)
* fix compiling on mac

* Update ExternalInterface.cpp
2019-01-09 11:23:48 -08:00
Joshua Granick
93a5cea26d Fix possible Vorbis compilation error on Windows 2019-01-08 10:09:32 -08:00
Joshua Granick
a3af3ff047 Update CHANGELOG 7.2.1 2019-01-07 15:31:41 -08:00
Joshua Granick
464dc88c44 Improve native HTTPRequest performance 2019-01-07 13:32:17 -08:00
Joshua Granick
e81367d83a Update CHANGELOG 2019-01-04 14:58:32 -08:00
Joshua Granick
28248361f9 Update to 7.2.1 2019-01-04 14:58:25 -08:00
Joshua Granick
0557e64a4d Improve assets cache break, allow disabling, or forcing a specific cache version 2019-01-04 14:29:31 -08:00
Joshua Granick
ac84c458f1 Don't dispatch window close on HTML5, since mobile browsers might not have really closed the browser page 2019-01-04 12:56:32 -08:00
Joshua Granick
e72ef60334 Update LICENSE.md 2019-01-02 06:46:31 -08:00
Joshua Granick
8883366f10 Bump HTML5 HTTP request limit internally 2018-12-20 16:25:19 -08:00
Joshua Granick
1ee9f02646 Update Howler to 2.1.0 2018-12-15 15:07:57 -08:00
Joshua Granick
e87d5c0801 Minor fix 2018-12-13 23:03:49 -08:00
Joshua Granick
e4d7ae8cf4 Template fix 2018-12-12 16:30:59 -08:00
Joshua Granick
c5581f7e9b Update SDL 2018-12-11 12:59:00 -08:00
Joshua Granick
eb0b2df706 Console font fixes 2018-12-10 21:20:01 -08:00
George FunBook
63cfd23e0b check mousedown cancelled for context menu disabling 2018-12-10 16:09:06 -08:00
Joshua Granick
911e6b9862 CommonJS runtime fix 2018-12-10 16:08:10 -08:00
Joshua Granick
c83a66a703 Improve font embedded metrics/data 2018-12-10 14:04:47 -08:00
Joshua Granick
56a6ec0a08 Minor fix 2018-12-07 14:31:09 -08:00
Joshua Granick
b8aa0df9dc Add cache break string to Assets library.json 2018-12-07 14:16:32 -08:00
Joshua Granick
57b3324e42 Update CHANGELOG 2018-12-04 12:12:38 -08:00
Joshua Granick
0b65b6f48c Update CHANGELOG 7.2.0 2018-12-03 12:59:58 -08:00
Joshua Granick
89fb62a8f1 Update to 7.2.0 2018-12-03 12:59:49 -08:00
Joshua Granick
a2e793fc90 Update OpenAL 2018-12-03 09:07:15 -08:00