1234567891011121314151617181920212223 |
- // Copyright 2019 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_GAMEPAD_BLOCKLIST_H_
- #define DEVICE_GAMEPAD_GAMEPAD_BLOCKLIST_H_
- #include <stdint.h>
- #include "device/gamepad/gamepad_export.h"
- namespace device {
- // Returns true if a device with IDs matching |vendor_id| and |product_id|
- // should not be treated as a gamepad. This is used to exclude devices that
- // would otherwise be treated as a gamepad because they expose gamepad-like
- // HID usages.
- bool DEVICE_GAMEPAD_EXPORT GamepadIsExcluded(uint16_t vendor_id,
- uint16_t product_id);
- } // namespace device
- #endif // DEVICE_GAMEPAD_GAMEPAD_BLOCKLIST_H_
|