keyboard: add haptic feedback

This commit is contained in:
Vladimir Stoiakin 2025-11-26 12:34:09 +03:00
parent 271cdf8534
commit 6b3477dc78
19 changed files with 211 additions and 15 deletions

20
shared/force_feedback.h Normal file
View file

@ -0,0 +1,20 @@
/**
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef BBX_FORCE_FEEDBACK_H
#define BBX_FORCE_FEEDBACK_H
#include <libudev.h>
/**
* Try to connect a force feedback device.
*/
void bbx_force_feedback_connect(struct udev_device* device);
/**
* Play a force feedback effect.
*/
void bbx_force_feedback_play();
#endif /* BBX_FORCE_FEEDBACK_H */