forked from hoantv/VNWheel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FfbWheel.h
45 lines (36 loc) · 810 Bytes
/
FfbWheel.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
42
43
44
45
#ifndef WHEEL_h
#define WHEEL_h
#include "WHID.h"
#include "Encoder.h"
#include "FfbEngine.h"
#if !defined(_USING_HID)
#warning "Using legacy HID core (non pluggable)"
#else
class Wheel_
{
private:
WheelReport _wheelReport;
void SendReport(void* data, int len);
public:
Wheel_(void);
void begin(void);
void end(void);
void write(void);
void press(uint8_t b);
void release(uint8_t b);
void releaseAll(void);
void buttons(uint8_t b);
void xAxis(int16_t a);
void yAxis(int16_t a);
void zAxis(int16_t a);
void rxAxis(int16_t a);
uint8_t AvailableReport();
int RecvReport(void* data, int len);
void RecvFfbReport();
WheelConfig wheelConfig;
Encoder encoder;
FfbEngine ffbEngine;
};
extern Wheel_ Wheel;
#endif
#endif