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

Unified Diff: device/gamepad/gamepad_platform_data_fetcher_android.cc

Issue 2350573002: Fix gamepad connected status on Android (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | 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_android.cc
diff --git a/device/gamepad/gamepad_platform_data_fetcher_android.cc b/device/gamepad/gamepad_platform_data_fetcher_android.cc
index 1d5220f5f8e2074d4208f76694f2bb6f86ab89fa..9e55f1164f809b7ec91974d924bb0cdd26665a21 100644
--- a/device/gamepad/gamepad_platform_data_fetcher_android.cc
+++ b/device/gamepad/gamepad_platform_data_fetcher_android.cc
@@ -117,6 +117,7 @@ static void SetGamepadData(JNIEnv* env,
pad.mapping[mapping_to_copy] = 0;
}
+ pad.connected = true;
pad.timestamp = timestamp;
std::vector<float> axes;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698