Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / content / browser / gamepad / gamepad_standard_mappings.cc
index 60ae072..7f159e1 100644 (file)
@@ -30,6 +30,10 @@ blink::WebGamepadButton ButtonFromButtonAndAxis(
   return blink::WebGamepadButton(button.pressed, value);
 }
 
+blink::WebGamepadButton NullButton() {
+  return blink::WebGamepadButton(false, 0.0);
+}
+
 void DpadFromAxis(blink::WebGamepad* mapped, float dir) {
   bool up = false;
   bool right = false;