YAL-Haxe / openfl-bitfive

Alternative blitting-targeted HTML5 backend for OpenFL.
103 stars 19 forks source link

Error message at buil when using a accelerometer #36

Open rems035 opened 9 years ago

rems035 commented 9 years ago

When I build triying to use an accelerometer. It keeps telling me

Source/Acc.hx:17: characters 27-46 : Accessing this field requires flash version 10.1 (use -swf-version 10.1) /usr/lib/haxe/lib/openfl/2,1,5/openfl/events/AccelerometerEvent.hx:37: lines 37-41 : Field toString is declared 'override' but doesn't override any field

YellowAfterlife commented 9 years ago

Quite a delayed response (since from a glance I was going to look into it with a batch of other things), but this is actually an error in OpenFL code, as you can note from file path. OpenFL-bitfive currently does not feature accelerometer support. It might in future, but I can't easily provide an ETA on that, as I haven't largely investigated possible implementation quirks in it.

rems035 commented 9 years ago

Is there a way to implement an external jquery plugin or anything to use the accelerometer?

Thanks for your answer! You really did a great job!

YellowAfterlife commented 9 years ago

Yes, you can use pretty much any JS library, there are multiple options. If the library is popular enough, someone may have made externs for it already, so give it a small search first.