commit
This commit is contained in:
parent
566ffb49f3
commit
13f307d387
12 changed files with 543 additions and 69 deletions
|
@ -47,9 +47,43 @@ pub enum HandlerEvent {
|
|||
Key { path: KeyPath, event: KeyEvent },
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Copy, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
pub enum VibrationPattern {
|
||||
Short,
|
||||
Medium,
|
||||
Long,
|
||||
Low,
|
||||
ShortLow,
|
||||
ShortLower,
|
||||
Lower,
|
||||
Lowest,
|
||||
DescendSlow,
|
||||
DescendMed,
|
||||
DescendFast,
|
||||
AscendSlow,
|
||||
AscendMed,
|
||||
AscendFast,
|
||||
RevSlowest,
|
||||
RevSlow,
|
||||
RevMed,
|
||||
RevFast,
|
||||
RevFaster,
|
||||
RevFastest,
|
||||
RiseFall,
|
||||
Buzz,
|
||||
Rumble5,
|
||||
Rumble4,
|
||||
Rumble3,
|
||||
Rumble2,
|
||||
Rumble1,
|
||||
VeryLong,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
|
||||
#[serde(tag = "command", rename_all = "kebab-case")]
|
||||
pub enum HandlerCommand {
|
||||
Vibrate { pattern: VibrationPattern },
|
||||
SetKeyStyle { path: KeyPath, value: Option<KeyStyle> },
|
||||
SetKnobStyle { path: KnobPath, value: Option<KnobStyle> },
|
||||
SetKnobValue { path: KnobPath, value: Option<f32> },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue