OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/gamepad/gamepad_data_fetcher.h" | 5 #include "content/browser/gamepad/gamepad_data_fetcher.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "build/build_config.h" |
8 | 11 |
9 namespace { | 12 namespace { |
10 | 13 |
11 #if !defined(OS_ANDROID) | 14 #if !defined(OS_ANDROID) |
12 const float kMinAxisResetValue = 0.1f; | 15 const float kMinAxisResetValue = 0.1f; |
13 #endif | 16 #endif |
14 | 17 |
15 } // namespace | 18 } // namespace |
16 | 19 |
17 namespace content { | 20 namespace content { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 pad->buttons[button].pressed = false; | 75 pad->buttons[button].pressed = false; |
73 pad->buttons[button].value = 0.0f; | 76 pad->buttons[button].value = 0.0f; |
74 } | 77 } |
75 } | 78 } |
76 } | 79 } |
77 } | 80 } |
78 } | 81 } |
79 #endif | 82 #endif |
80 | 83 |
81 } // namespace content | 84 } // namespace content |
OLD | NEW |