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