feat: 实现摇一摇导航功能
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "settings_types.h"
|
||||
|
||||
typedef enum {
|
||||
MOTION_NAV_NEXT = 0,
|
||||
} motion_nav_event_t;
|
||||
|
||||
typedef void (*motion_nav_cb_t)(motion_nav_event_t event);
|
||||
|
||||
void motion_gesture_init(motion_nav_cb_t cb);
|
||||
void motion_gesture_set_enabled(bool enabled);
|
||||
void motion_gesture_set_sensitivity(shake_sensitivity_t sens);
|
||||
void motion_gesture_on_sample(float ax_g, float ay_g, float az_g);
|
||||
Reference in New Issue
Block a user