keyboard: add haptic feedback
This commit is contained in:
parent
271cdf8534
commit
6b3477dc78
19 changed files with 211 additions and 15 deletions
20
shared/force_feedback.h
Normal file
20
shared/force_feedback.h
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue