blob: 82b159c5185cf6ca376b9ca85772f193011a5559 [file] [log] [blame]
// Copyright 2018 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.
#ifndef DEVICE_GAMEPAD_DUALSHOCK4_CONTROLLER_LINUX_
#define DEVICE_GAMEPAD_DUALSHOCK4_CONTROLLER_LINUX_
#include "device/gamepad/dualshock4_controller_base.h"
#include "base/files/scoped_file.h"
namespace device {
class Dualshock4ControllerLinux : public Dualshock4ControllerBase {
public:
Dualshock4ControllerLinux(const base::ScopedFD& fd);
~Dualshock4ControllerLinux() override;
size_t WriteOutputReport(void* report, size_t report_length) override;
private:
// Not owned.
int fd_;
};
} // namespace device
#endif // DEVICE_GAMEPAD_DUALSHOCK4_CONTROLLER_LINUX_