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

Unified Diff: device/gamepad/gamepad_platform_data_fetcher.h

Issue 2271353002: Added support for GameController devices on OSX (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review feedback Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« device/gamepad/BUILD.gn ('K') | « device/gamepad/gamepad_pad_state_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/gamepad_platform_data_fetcher.h
diff --git a/device/gamepad/gamepad_platform_data_fetcher.h b/device/gamepad/gamepad_platform_data_fetcher.h
index 9dcdd0e6bb85495b651c71150851d34031bcac92..cef4a858025e9e98850e783f4b526ea6c647b0b7 100644
--- a/device/gamepad/gamepad_platform_data_fetcher.h
+++ b/device/gamepad/gamepad_platform_data_fetcher.h
@@ -22,6 +22,7 @@
#include "device/gamepad/gamepad_platform_data_fetcher_win.h"
#include "device/gamepad/raw_input_data_fetcher_win.h"
#elif defined(OS_MACOSX)
+#include "device/gamepad/game_controller_data_fetcher_mac.h"
#include "device/gamepad/gamepad_platform_data_fetcher_mac.h"
#include "device/gamepad/xbox_data_fetcher_mac.h"
#elif defined(OS_LINUX)
@@ -42,6 +43,7 @@ void AddGamepadPlatformDataFetchers(GamepadDataFetcherManager* manager) {
#elif defined(OS_MACOSX)
+ manager->AddFactory(new GameControllerDataFetcherMac::Factory());
manager->AddFactory(new GamepadPlatformDataFetcherMac::Factory());
manager->AddFactory(new XboxDataFetcher::Factory());
« device/gamepad/BUILD.gn ('K') | « device/gamepad/gamepad_pad_state_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698