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

Unified Diff: third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp

Issue 2300883003: Added Hand attribute to Gamepad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gamepad_pose
Patch Set: Address haraken@'s feedback 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
Index: third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
diff --git a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
index 3acee34d65cb5701be65ed276cda1ecd15648e6f..c6704a5753f5e25a0406c1f0a2de418ed678a102 100644
--- a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -46,6 +46,7 @@ static void sampleGamepad(unsigned index, T& gamepad, const WebGamepad& webGamep
gamepad.setAxes(webGamepad.axesLength, webGamepad.axes);
gamepad.setButtons(webGamepad.buttonsLength, webGamepad.buttons);
gamepad.setPose(webGamepad.pose);
+ gamepad.setHand(webGamepad.hand);
}
template<typename GamepadType, typename ListType>
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/Gamepad.idl ('k') | third_party/WebKit/public/platform/WebGamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698