Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Issue 2065383004: Gamepad: Improve unknown gamepad heuristics and mappings (Closed)

Created:
4 years, 6 months ago by cgutman
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, Changwan Ryu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Gamepad: Improve unknown gamepad heuristics and mappings This CL improves the logic for mapping unknown gamepads by trying several different axes for triggers, right stick, and d-pad. With this change, Moga Pro, Nexus Player (ASUS) Gamepad, and Razer Serval controllers are working correctly without an explicit mapping. Before the change, the d-pad on Moga, Serval, and ASUS Gamepad were non-functional. The triggers on the Moga didn't work at all, and the Serval and ASUS Gamepad's triggers were swapped with the shoulder buttons. TEST=http://html5gamepad.com/ BUG=615656

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -30 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/input/GamepadMappings.java View 7 chunks +74 lines, -16 lines 0 comments Download
M content/public/android/junit/src/org/chromium/content/browser/input/GamepadMappingsTest.java View 6 chunks +95 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
cgutman
Hopefully this will address the problems that people are having with the current unknown gamepad ...
4 years, 6 months ago (2016-06-16 04:11:30 UTC) #3
Changwan Ryu
4 years, 6 months ago (2016-06-16 06:48:43 UTC) #5
bajones
I like the intent behind this, but I'm a little confused by the implementation. It ...
4 years, 6 months ago (2016-06-16 17:19:35 UTC) #6
cgutman
On 2016/06/16 17:19:35, bajones wrote: > I like the intent behind this, but I'm a ...
4 years, 6 months ago (2016-06-16 18:47:28 UTC) #7
bajones
On 2016/06/16 18:47:28, cgutman wrote: > Granted, it's better than what the existing code does ...
4 years, 6 months ago (2016-06-16 21:24:30 UTC) #8
cgutman
On 2016/06/16 21:24:30, bajones wrote: > I'd be curious to know what this looks like. ...
4 years, 6 months ago (2016-06-17 04:16:32 UTC) #9
cgutman
4 years, 6 months ago (2016-06-18 17:40:32 UTC) #10
Message was sent while issue was closed.
On 2016/06/17 04:16:32, cgutman wrote:
> On 2016/06/16 21:24:30, bajones wrote:
> > I'd be curious to know what this looks like. Would it be difficult to do a
> > speculative patch for?
> 
> I put something together here: https://codereview.chromium.org/2071223002/
> 
> Let me know if you like that approach better.

Closed in favor of the better approach in
https://codereview.chromium.org/2071223002/

Powered by Google App Engine
This is Rietveld 408576698