Hi Srikumar,

I'm no longer actively working on this code (haven't been for over a year now) 
so I'm cc'ing the mobile-firefox-dev mailing list. I answer your questions 
below but the people on that mailing list will be in a better position to speak 
to what the future plans for this code is, and would have final say on the 
matter. (Also I'm not subscribed to that list so if you need something else 
from, please cc me on the email directly).

The issue you are describing is covered by bug 937939.

When we added the code to map the right joystick to zoom, we were primarily 
just trying to get things up and running in a usable state for the Ouya 
console. That effort has since been abandoned, so I don't know if anybody 
really is maintaining that code any more. I would be happy to accept patches to 
modify the behaviour like you describe. I'm not sure if the mouse cursor you're 
talking about is built in to the interface on the Shield or not, but if it 
isn't then you'd have to also add support for it in Firefox for Android which 
won't be trivial.

To respond to your questions specifically:
1) No, we didn't have any standard or spec we were following when we mapped 
right joystick to zooming
2) On the Ouya there was also a d-pad which we intended to map to link-to-link 
navigation. That was working at one point but I think has since been disabled - 
I forget, but I can dig up the relevant bugs if you're interested (bug 698437 
is one example). On the Ouya there was no mouse pointer, and so we never 
supported that mode of interaction.
3) In theory, sure. In fact the original implementation in bug 831781 used L2 
and R2 for zooming.

Cheers,
kats

----- Original Message -----
> From: "Srikumar Bonda" <[email protected]>
> To: [email protected]
> Sent: Friday, November 14, 2014 6:08:13 PM
> Subject: Gamepad Controller support on "Firefox for Android"
> 
> Hi Karthikaya,
> I am Srikumar Bonda. I was trying to use Gamepad right joy sitck (RS) on
> "Firefox for Android" using Nvidia Shield as mouse pointer(default behavior)
> but it is mapped to zooming.
> 
> After further digging, I see that you have implemented the support w.r.t
> https://bug855783.bugzilla.mozilla.org/attachment.cgi?id=730780
> 
> By default, I see right joystick for android platform and other apps are
> mapped as mouse arrow for seemless positioning across the device but only on
> firefox, it is working for zooming.
> 
> 
> My question is that,
> 1) Do you have any standard or specific spec that is been followed to map
> Right joystick to zooming?
> 2) Considering that right joystick is mapped to zooming and left joystick is
> mapped to scrolling, What gamepad key can be used to walk through different
> content on the webpage (like mouse arrow) to click a link or so?
> 3) Can we make a change in "Firefox for Android" to keep right joystick for
> mouse arrow and map other keys (maybe like press LS and move RS) to zoom?
> 
> 
> -Sri
> 
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to