| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "device/gamepad/public/cpp/gamepad.h" |
| |
| namespace device { |
| |
| const size_t Gamepad::kIdLengthCap; |
| const size_t Gamepad::kMappingLengthCap; |
| const size_t Gamepad::kAxesLengthCap; |
| const size_t Gamepad::kButtonsLengthCap; |
| |
| Gamepad::Gamepad() |
| : connected(false), |
| timestamp(0), |
| axes_length(0), |
| buttons_length(0), |
| display_id(0) { |
| id[0] = 0; |
| mapping[0] = 0; |
| } |
| |
| Gamepad::Gamepad(const Gamepad& other) = default; |
| |
| } // namespace device |