23 #ifndef __PLUGINS_JOYSTICK_FORCE_FEEDBACK_H_ 24 #define __PLUGINS_JOYSTICK_FORCE_FEEDBACK_H_ 27 #include <linux/input.h> 43 void rumble(uint16_t strong_magnitude, uint16_t weak_magnitude,
45 uint16_t length = 0, uint16_t delay = 0);
68 struct ff_effect __rumble;
Downward effect direction.
bool is_rumbling()
Check if rumbling effect is active.
bool can_ramp()
Check if ramp effect is supported.
bool can_friction()
Check if friction effect is supported.
bool can_triangle()
Check if triangle effect is supported.
bool can_square()
Check if square effect is supported.
~JoystickForceFeedback()
Destructor.
void stop_rumble()
Stop rumbling.
void stop_all()
Stop all current effects.
void rumble(uint16_t strong_magnitude, uint16_t weak_magnitude, Direction direction=DIRECTION_DOWN, uint16_t length=0, uint16_t delay=0)
Rumble the joystick.
bool can_constant()
Check if constant effect is supported.
bool can_periodic()
Check if periodic effect is supported.
bool can_custom()
Check if custom effect is supported.
Cause force feedback on a joystick.
Direction
Direction of the effect.
bool can_sine()
Check if sine effect is supported.
JoystickForceFeedback(const char *device_name)
Constructor.
bool can_damper()
Check if damper effect is supported.
bool can_saw_down()
Check if downward saw effect is supported.
bool can_spring()
Check if spring effect is supported.
bool can_rumble()
Check if rumbling effect is supported.
bool can_inertia()
Check if inertia effect is supported.
bool can_saw_up()
Check if upward saw effect is supported.