blob: 8d07e896af464a07b08a4c585d0d67ffcd3eeebf [file] [log] [blame]
// 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_