Closed Bug 920611 Opened 11 years ago Closed 11 years ago

Support HTML5 Gamepad events

Categories

(Firefox for Android Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 852935

People

(Reporter: wesj, Assigned: almasry.mina)

Details

We should ship gamepad events from the system over to Gecko. Should be pretty simple, although our handling of gamepad events in java for panning may make for some strange interactions.
Summary: Supper HTML5 Gamepad events → Support HTML5 Gamepad events
This is probably a straight up dupe of bug 852935
I'm not sure I understand. Could you please elaborate what exactly is needed and where do I start with it? Thanks!
Flags: needinfo?(wjohnston)
Flags: needinfo?(bugmail.mozilla)
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #1)
> This is probably a straight up dupe of bug 852935

I agree.

Mina, this bug would mean that we grab MotionEvent from gamepads in java and send them over to the Gecko widget layer where they could be converted to HTML5 Gamepad events and redispatched.  To see something similar, see how touch events are picked up in Java:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/gfx/LayerView.java#165

then send over to widget:
http://mxr.mozilla.org/mozilla-central/source/widget/android/nsWindow.cpp#847

where they're eventually sent off into the wild blue yonder of the platform:
http://mxr.mozilla.org/mozilla-central/source/widget/android/nsWindow.cpp#1316

in this case you'd be generating gamepad events rather than mouse:
http://mxr.mozilla.org/mozilla-central/source/widget/BasicEvents.h#447
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(wjohnston)
Resolution: --- → DUPLICATE
Flags: needinfo?(bugmail.mozilla)
Assignee: nobody → malmasry
Hehe wes I don't think you resolved this by providing the info for me needinfo flag :P
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
oops nevermind
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → DUPLICATE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.