mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-17 04:34:44 -07:00
* Add `Vibro Trigger` to input settings Adds vibro trigger type to input settings to allow vibration on only press/release, or both. * Didn't format, apparently * Use a mask for smaller code, migrate setting to new version * Update changelog --------- Co-authored-by: WillyJL <me@willyjl.dev>
14 lines
295 B
C
14 lines
295 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#define RECORD_INPUT_SETTINGS "input_settings"
|
|
|
|
typedef struct {
|
|
uint8_t vibro_touch_level;
|
|
uint8_t vibro_touch_trigger_mask;
|
|
} InputSettings;
|
|
|
|
void input_settings_load(InputSettings* settings);
|
|
void input_settings_save(const InputSettings* settings);
|