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

Unified Diff: device/vr/android/gvr/gvr_gamepad_data_fetcher.cc

Issue 2377763003: Revert "Updated to GVR 1.0 SDK" (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 | « device/vr/android/gvr/gvr_gamepad_data_fetcher.h ('k') | third_party/gvr-android-sdk/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_gamepad_data_fetcher.cc
diff --git a/device/vr/android/gvr/gvr_gamepad_data_fetcher.cc b/device/vr/android/gvr/gvr_gamepad_data_fetcher.cc
index 17bc49a7a358822c037493cbef2544a44c8ec9dd..34b44272fb61e778aec2d84ffa291d13670c0d89 100644
--- a/device/vr/android/gvr/gvr_gamepad_data_fetcher.cc
+++ b/device/vr/android/gvr/gvr_gamepad_data_fetcher.cc
@@ -54,8 +54,6 @@ GvrGamepadDataFetcher::GvrGamepadDataFetcher(GvrDelegate* delegate,
bool success = controller_api_->Init(options, gvr_api->GetContext());
if (!success)
controller_api_.reset(nullptr);
-
- user_prefs_.reset(new gvr::UserPrefs(gvr_api->GetUserPrefs().cobj()));
}
GvrGamepadDataFetcher::~GvrGamepadDataFetcher() {}
@@ -96,9 +94,7 @@ void GvrGamepadDataFetcher::GetGamepadData(bool devices_changed_hint) {
pad.timestamp = controller_state_.GetLastOrientationTimestamp();
// TODO: Query from API if avaialable.
- gvr::ControllerHandedness handedness = user_prefs_->GetControllerHandedness();
- pad.hand = (handedness == GVR_CONTROLLER_RIGHT_HANDED) ? GamepadHandRight
- : GamepadHandLeft;
+ pad.hand = GamepadHandRight;
if (controller_state_.IsTouching()) {
gvr_vec2f touch_position = controller_state_.GetTouchPos();
« no previous file with comments | « device/vr/android/gvr/gvr_gamepad_data_fetcher.h ('k') | third_party/gvr-android-sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698