forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgamepad_consumer.h
27 lines (20 loc) · 876 Bytes
/
gamepad_consumer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2014 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_CONSUMER_H_
#define DEVICE_GAMEPAD_GAMEPAD_CONSUMER_H_
#include "device/gamepad/gamepad_export.h"
#include "device/gamepad/public/cpp/gamepad.h"
namespace device {
class DEVICE_GAMEPAD_EXPORT GamepadConsumer {
public:
GamepadConsumer();
virtual ~GamepadConsumer();
virtual void OnGamepadConnected(uint32_t index, const Gamepad& gamepad) = 0;
virtual void OnGamepadDisconnected(uint32_t index,
const Gamepad& gamepad) = 0;
virtual void OnGamepadButtonOrAxisChanged(uint32_t index,
const Gamepad& gamepad) = 0;
};
} // namespace device
#endif // DEVICE_GAMEPAD_GAMEPAD_CONSUMER_H_