Search code examples
htmlhaxeflashdevelopopenflhaxeflixel

Can't publish my HaxeFlixel game to html5 due to "Type not found : lime.ui.Joystick" from flash develop


I get 'C:/HaxeToolkit/haxe/lib/openfl/3,3,9/openfl/display/Stage.hx:23: characters 7-23 : Type not found : lime.ui.Joystick' Whenever I try to publish to html5 from flash develop. I've run haxelib update on openfl, flixel, and lime, with no change. Has anyone run into this, and is there a simple fix?

Source can be found here: https://github.com/jrdoughty/RTSBase


Solution

  • I'm not sure but you could try to disable gamepads by adding

    <haxedef name="FLX_NO_GAMEPAD" />
    

    in project.xml http://haxeflixel.com/documentation/gamepads/, or if you need them, you could exclude only for html5 target

    <haxedef name="FLX_NO_GAMEPAD" if="html5" />