josuigoa / gesluxe Goto Github PK
View Code? Open in Web Editor NEWGesture recognition library inplemented in Haxe using Luxe engine
Gesture recognition library inplemented in Haxe using Luxe engine
At the end of the zoom gesture it always returns 1 value
I have not been able to run the examples project with neither Mac nor Web with the latest versions of flow, snow and luxe.
Here's my output for Mac:
$ haxelib run flow run mac
flow / 1.0.0-alpha.1
flow / target is mac ( arch 64 )
flow / project - searching project root /Users/nissen/code/Gesluxe
flow / project - using project file /Users/nissen/code/Gesluxe/project.flow
flow / build - gesluxe_test 1.0.0 for mac
flow / build - running haxe ...
flow / build - running hxcpp ...
flow / build - done
flow / launching gesluxe_test 1.0.0 for mac
Core.hx:140: i / luxe / version 1.0.0-alpha.1+83169a9776
Error : Invalid Cast
And for Web (Chrome):
Core.hx:140: i / luxe / version 1.0.0-alpha.1+83169a9776 gesluxe_test.js:1820
Parcel.hx::100 i / parcel / loading parcel in 0.4s gesluxe_test.js:3403
Parcel.hx::104 i / parcel / starting load gesluxe_test.js:3403
Texture.hx::149 i / texture / texture loaded assets/luxelogo.png (360x390) real size (512x512) gesluxe_test.js:3403
Texture.hx::149 i / texture / texture loaded assets/arrow.png (220x150) real size (256x256) gesluxe_test.js:3403
Uncaught TypeError: undefined is not a function gesluxe_test.js:2589
where gesluxe_test.js:2589
is
set_parent: function(other) {
if(this.get_parent() != null) this.get_parent()._remove_child(this);
this.parent = other;
if(this.get_parent() != null) {
this.get_parent()._add_child(this); // <-- Error here
this.transform.set_parent(this.get_parent().transform);
} else this.transform.set_parent(null);
return this.get_parent();
}
It would be nice with some basic documentation about the library or a how-to guide. How to initialise the library, listen to events and handle gesture events.
For instance, something like the following:
// ...
Gesluxe.init();
zoomGesture = new ZoomGesture();
zoomGesture.events.listen(GestureEvent.GESTURE_BEGAN, onZoomGesture);
zoomGesture.events.listen(GestureEvent.GESTURE_CHANGED, onZoomGesture);
}
function onZoomGesture(event: GestureEventData) {
Luxe.camera.scale.set_xy(zoomGesture.scaleX, zoomGesture.scaleY);
}
Get multitouch gestures to work on web platform
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.