-
-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Support for Web #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! I will be super cool to have support on web too, I have left some comments, let me know of anything
return controllers; | ||
} | ||
|
||
List<dynamic> getGamepadList() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't the list be typed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did't get it well. Does the latest implementation look fine?
cc100bd
to
f738725
Compare
@spydon @erickzanardo Any more suggestions? |
Also this:
So the SDK has to be bumped to 3.4 everywhere, and then you can use web ^1.1.0 (And flutter has to be bumped accordingly). |
Popping in to mention that there is a Github issue in this project associated with web support. I made a proof of concept for a web implementation earlier this year and I wouldn't consider web to be a stable platform for the purposes of this package, see comments on the issue. |
I just ran a test on my Mac with 4 different USB Gamepads (Logitech Gamepad F310, cheap Nintendo NES like, Competition Pro USB, Hama Black Force).
It also reported the events from the devices. Plug and Play in the Browser. Surprisingly, it just works. I would also argue that all relevant features that game developers need are well established in the GamePad API, as shown here: Therefore it would be really cool to see GamePad support for Flame moving forward on both Windows and on Web. |
@zhuhaichao518 do you have any plans of finishing this up? :) |
Oh, sure. I will work on this on this weekend. I am also investigating
vibration and I wonder if anyone is working on it. :)
Lukas Klingsbo ***@***.***>于2025年9月8日 周一23:18写道:
… *spydon* left a comment (flame-engine/gamepads#48)
<#48 (comment)>
@zhuhaichao518 <https://github.com/zhuhaichao518> do you have any plans
of finishing this up? :)
—
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM4EALHNHNKXA45TAV7BJLT3RWM6BAVCNFSM6AAAAACF5ZP5JOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTENRWHAYDSNBZG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Great to hear! Nobody is working on vibration as far as I know. |
@spydon Hi, I'm not sure if any action is required to move to the next step. I see Because gamepads depends on gamepads_web any which doesn't exist (could not find package gamepads_web at https://pub.dev),/ version solving failed. in CI but I'm quite not familiar with this. :) |
Co-authored-by: Lukas Klingsbo <[email protected]>
I am developing an app requiring web support for gamepads. I would like to contribute to this project. Please help review this pull request. Thanks!