mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-17 19:24:22 +02:00
custom linear haptics
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
export type HapticPrimitive =
|
||||
| 'click'
|
||||
| 'thud'
|
||||
| 'spin'
|
||||
| 'quickRise'
|
||||
| 'slowRise'
|
||||
| 'quickFall'
|
||||
| 'tick'
|
||||
| 'lowTick';
|
||||
|
||||
export interface HapticCompositionStep {
|
||||
primitive: HapticPrimitive;
|
||||
scale: number;
|
||||
delayMs?: number;
|
||||
}
|
||||
|
||||
export interface HapticPrimitiveCapability {
|
||||
supported: boolean;
|
||||
durationMs: number;
|
||||
}
|
||||
|
||||
export interface HapticCapabilities {
|
||||
moduleAvailable: boolean;
|
||||
apiLevel: number;
|
||||
hasVibrator: boolean;
|
||||
hasAmplitudeControl: boolean;
|
||||
touchFeedbackEnabled: boolean;
|
||||
primitives: Record<HapticPrimitive, HapticPrimitiveCapability>;
|
||||
}
|
||||
Reference in New Issue
Block a user