summaryrefslogtreecommitdiffstats
path: root/content/common/gamepad_user_gesture.h
blob: 899e366048772f484c0310df5152361b38fcf9b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2012 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 CONTENT_COMMON_GAMEPAD_USER_GESTURE_H_
#define CONTENT_COMMON_GAMEPAD_USER_GESTURE_H_

namespace blink {
class WebGamepads;
}

namespace content {

// Returns true if any of the gamepads have a button pressed or axis moved
// that would be considered a user gesture for interaction.
bool GamepadsHaveUserGesture(const blink::WebGamepads& gamepads);

}  // namespace content

#endif  // CONTENT_COMMON_GAMEPAD_USER_GESTURE_H_