gamepad_user_gesture.h 568 B

123456789101112131415161718
  1. // Copyright (c) 2012 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_USER_GESTURE_H_
  5. #define DEVICE_GAMEPAD_GAMEPAD_USER_GESTURE_H_
  6. namespace device {
  7. class Gamepads;
  8. // Returns true if any of the gamepads have a button pressed or axis moved
  9. // that would be considered a user gesture for interaction.
  10. bool GamepadsHaveUserGesture(const Gamepads& gamepads);
  11. } // namespace device
  12. #endif // DEVICE_GAMEPAD_GAMEPAD_USER_GESTURE_H_