Open FFBoard
Open source force feedback firmware
FFBWheel.h
Go to the documentation of this file.
1/*
2 * FFBWheel.h
3 *
4 * Created on: 29.03.2022
5 * Author: Yannick
6 */
7
8#ifndef USEREXTENSIONS_SRC_FFBWHEEL_H_
9#define USEREXTENSIONS_SRC_FFBWHEEL_H_
10#include "constants.h"
11#ifdef FFBWHEEL
12
13#include "FFBHIDMain.h"
14
15class FFBWheel : public FFBHIDMain {
16public:
17 FFBWheel();
18 virtual ~FFBWheel();
19
22
23 void usbInit() override;
24
25
26private:
27 std::shared_ptr<EffectsCalculator> effects_calc = std::make_shared<EffectsCalculator>();
28 std::shared_ptr<EffectsControlItf> ffb = std::make_shared<HidFFB>(effects_calc,1);
29};
30
31#endif
32
33#endif /* USEREXTENSIONS_SRC_FFBWHEEL_H_ */
FFBWheel()
Definition: FFBWheel.cpp:26
std::shared_ptr< EffectsCalculator > effects_calc
Definition: FFBWheel.h:27
virtual ~FFBWheel()
Definition: FFBWheel.cpp:32
void usbInit() override
Definition: FFBWheel.cpp:38
const ClassIdentifier getInfo()
Definition: FFBWheel.cpp:21
static ClassIdentifier info
Definition: FFBWheel.h:20
std::shared_ptr< EffectsControlItf > ffb
Definition: FFBWheel.h:28