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

Unified Diff: chrome/browser/android/vr_shell/vr_controller.cc

Issue 2775283004: Rendering Daydream controller in a fixed position. (Closed)
Patch Set: Using textures for corresponding button states. Created 3 years, 9 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
Index: chrome/browser/android/vr_shell/vr_controller.cc
diff --git a/chrome/browser/android/vr_shell/vr_controller.cc b/chrome/browser/android/vr_shell/vr_controller.cc
index 0bcf10f6816befb5afa37c22ab11aa202c74688d..a58a36322a759e19df1e01b962af38b6e7e2aa66 100644
--- a/chrome/browser/android/vr_shell/vr_controller.cc
+++ b/chrome/browser/android/vr_shell/vr_controller.cc
@@ -149,6 +149,10 @@ bool VrController::ButtonUpHappened(gvr::ControllerButton button) {
return controller_state_->GetButtonUp(button);
}
+bool VrController::ButtonState(gvr::ControllerButton button) {
+ return controller_state_->GetButtonState(button);
+}
+
bool VrController::IsConnected() {
return controller_state_->GetConnectionState() == gvr::kControllerConnected;
}

Powered by Google App Engine
This is Rietveld 408576698