-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventListenerSteamController.h
More file actions
47 lines (30 loc) · 980 Bytes
/
EventListenerSteamController.h
File metadata and controls
47 lines (30 loc) · 980 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// Created by denis on 12/19/18.
//
#ifndef CCWARIO_EVENTLISTENERSTEAMCONTROLLER_H
#define CCWARIO_EVENTLISTENERSTEAMCONTROLLER_H
#include "platform/CCPlatformMacros.h"
#include "base/CCEventListener.h"
#include "EventSteamController.h"
NS_CC_BEGIN
class Event;
class SteamController;
class EventListenerSteamController : public EventListener {
public:
static const std::string LISTENER_ID;
/** Create a controller event listener.
*
* @return An autoreleased EventListenerController object.
*/
static EventListenerSteamController* create();
/// Overrides
virtual bool checkAvailable() override;
EventListenerSteamController* clone() override;
std::function<void(SteamController*, Event*)> onConnected;
std::function<void(SteamController*, Event*)> onDisconnected;
std::function<void(SteamController*, Event*)> onUpdate;
protected:
bool init();
};
NS_CC_END
#endif //CCWARIO_EVENTLISTENERSTEAMCONTROLLER_H