-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathIwGameController_DesktopHid.h
41 lines (31 loc) · 1.33 KB
/
IwGameController_DesktopHid.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* (C) 2015 Nick Smith
*
* DesktopHid Implementation of IwGameController
*/
#ifndef IW_GAMECONTROLLER_DESKTOP_HID_H
#define IW_GAMECONTROLLER_DESKTOP_HID_H
#include "s3e.h"
#include "s3eHidController.h"
#include "IwGameController.h"
namespace IwGameController {
class CIwGameControllerDesktopHid : public CIwGameController
{
public:
CIwGameControllerDesktopHid();
virtual ~CIwGameControllerDesktopHid();
int GetControllerCount();
int GetMaxControllers();
int GetProperty(CIwGameControllerHandle* handle, Property::eProperty prop);
void SetProperty(CIwGameControllerHandle* handle, Property::eProperty prop, int value);
ControllerType::eControllerType GetControllerType(CIwGameControllerHandle* handle);
CIwGameControllerHandle* GetControllerByIndex(int index);
CIwGameControllerHandle* GetControllerByPlayer(int player);
bool IsButtonSupported(CIwGameControllerHandle* handle, Button::eButton button);
bool IsAxisSupported(CIwGameControllerHandle* handle, Axis::eAxis axis);
void StartFrame();
bool GetButtonState(CIwGameControllerHandle* handle, Button::eButton button);
float GetAxisValue(CIwGameControllerHandle* handle, Axis::eAxis axis);
};
} // namespace IwGameController
#endif