gamepad_blocklist.h 786 B

1234567891011121314151617181920212223
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef DEVICE_GAMEPAD_GAMEPAD_BLOCKLIST_H_
  5. #define DEVICE_GAMEPAD_GAMEPAD_BLOCKLIST_H_
  6. #include <stdint.h>
  7. #include "device/gamepad/gamepad_export.h"
  8. namespace device {
  9. // Returns true if a device with IDs matching |vendor_id| and |product_id|
  10. // should not be treated as a gamepad. This is used to exclude devices that
  11. // would otherwise be treated as a gamepad because they expose gamepad-like
  12. // HID usages.
  13. bool DEVICE_GAMEPAD_EXPORT GamepadIsExcluded(uint16_t vendor_id,
  14. uint16_t product_id);
  15. } // namespace device
  16. #endif // DEVICE_GAMEPAD_GAMEPAD_BLOCKLIST_H_