-
I am working on getting a game controller (a XBox 360 Controller currently) working in my game. I am setting up these games to be playable in the browser. And while I have the controller input working in my desktop build, the HTML5 build crashes when it enters my play state. I tried compiling the GamePadTest demo to HTML5 but it fails with this error: `Warning: Could not generate *.woff web font for "/home/zachary/haxelib/flixel/4,10,0/assets/fonts/nokiafc22.ttf" events.js:72 And when I try the running demo on the HaxeFlixel site, it doesn't detect my controller. Do HTML5 games just not support controllers or am I missing something? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
When you run |
Beta Was this translation helpful? Give feedback.
-
Just a note for people who are reading this. I initially was referencing the GamepadTest demo for controller input, but there was just way too much going on in that code and it was not fun to try and parse out what I needed. So, I switched over to the Mode demo and it used the FlxAction and FlxActionManager classes for input. That was much easier for me to work with and seems to be the solution that I will be using going forward. I am still unable to use my controller in Firefox on Linux. Haven't tested any other OS yet. But Chrome and native desktop apps work fine. |
Beta Was this translation helpful? Give feedback.
When you run
haxelib run lime test html5
it runs on a port, by default mine runs onhttp://127.0.0.1:3000/
, the error you see means that you tried to test it on a port that's actively used by something else, likely your game. try:haxelib run lime test html5 --port=3001