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

Issue 10346009: gamepad: linux: use input device parent, not USB (Closed)

Created:
8 years, 7 months ago by keybuk
Modified:
8 years, 7 months ago
Reviewers:
jam, sky, scottmg
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, hstefanov_chromium.org
Visibility:
Public.

Description

gamepad: linux: use input device parent, not USB The input device parent of a joystick device already has the vendor and product id as well as a name attribute that combines the manufacturer and product name, use this instead of the USB device parent giving us support for non-USB (i.e. Bluetooth) gamepads. BUG=chromium-os:30273 TEST=PS3 controller shows up with correct mappings when connected via Bluetooth. Change-Id: Ifa9ed24a4c9b9a5b2c98aad862fc77a520233e0d R=scottmg@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135272

Patch Set 1 #

Patch Set 2 : use USB strings over Input if for the same device ids #

Total comments: 1

Patch Set 3 : separate the extension of the string #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -20 lines) Patch
M content/browser/gamepad/platform_data_fetcher_linux.cc View 1 2 3 chunks +49 lines, -20 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
keybuk
8 years, 7 months ago (2012-05-02 21:50:23 UTC) #1
scottmg
On 2012/05/02 21:50:23, keybuk wrote: I just checked a couple pads, and this seems to ...
8 years, 7 months ago (2012-05-02 22:24:06 UTC) #2
keybuk
There isn't an easy difference between a USB pad and a Bluetooth pad, we wouldn't ...
8 years, 7 months ago (2012-05-02 23:06:46 UTC) #3
scottmg
On 2012/05/02 23:06:46, keybuk wrote: > There isn't an easy difference between a USB pad ...
8 years, 7 months ago (2012-05-02 23:25:30 UTC) #4
keybuk
On 2012/05/02 23:25:30, scottmg wrote: > On 2012/05/02 23:06:46, keybuk wrote: > > There isn't ...
8 years, 7 months ago (2012-05-03 15:59:09 UTC) #5
keybuk
that worked just fine, please take another look
8 years, 7 months ago (2012-05-03 17:28:04 UTC) #6
scottmg
excellent, thanks! lgtm with comment. http://chromiumcodereview.appspot.com/10346009/diff/7001/content/browser/gamepad/platform_data_fetcher_linux.cc File content/browser/gamepad/platform_data_fetcher_linux.cc (right): http://chromiumcodereview.appspot.com/10346009/diff/7001/content/browser/gamepad/platform_data_fetcher_linux.cc#newcode180 content/browser/gamepad/platform_data_fetcher_linux.cc:180: std::string id = base::StringPrintf("%s ...
8 years, 7 months ago (2012-05-03 17:37:38 UTC) #7
keybuk
ok, please check the separation
8 years, 7 months ago (2012-05-03 18:19:42 UTC) #8
scottmg
lgtm
8 years, 7 months ago (2012-05-03 18:23:06 UTC) #9
scottmg
lgtm lgtm
8 years, 7 months ago (2012-05-03 18:23:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/10346009/11002
8 years, 7 months ago (2012-05-03 18:27:01 UTC) #11
commit-bot: I haz the power
Presubmit check for 10346009-11002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-03 18:27:07 UTC) #12
keybuk
+sky for OWNERS
8 years, 7 months ago (2012-05-03 18:28:35 UTC) #13
sky
I don't know anything about this code. Is there another owner you can get to ...
8 years, 7 months ago (2012-05-03 19:14:33 UTC) #14
scottmg
On 2012/05/03 19:14:33, sky wrote: > I don't know anything about this code. Is there ...
8 years, 7 months ago (2012-05-03 19:24:21 UTC) #15
sky
Jam is still an owner. I added him.
8 years, 7 months ago (2012-05-03 19:30:02 UTC) #16
jam
rubberstamp lgtm
8 years, 7 months ago (2012-05-03 22:45:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/10346009/11002
8 years, 7 months ago (2012-05-03 23:54:50 UTC) #18
commit-bot: I haz the power
8 years, 7 months ago (2012-05-04 01:47:53 UTC) #19
Change committed as 135272

Powered by Google App Engine
This is Rietveld 408576698