mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Add js sdk changes
With type declarations and various missing parts added by Willy-JL
This commit is contained in:
32
applications/system/js_app/packages/fz-sdk/vgm/index.d.ts
vendored
Normal file
32
applications/system/js_app/packages/fz-sdk/vgm/index.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Module for interactive with Flipper Video Game Module (VGM)
|
||||
* @version Available with JS feature `vgm`
|
||||
* @module
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Get current VGM pitch, or undefined if VGM not present
|
||||
*/
|
||||
export declare function getPitch(): number | undefined;
|
||||
|
||||
/**
|
||||
* @brief Get current VGM roll, or undefined if VGM not present
|
||||
*/
|
||||
export declare function getRoll(): number | undefined;
|
||||
|
||||
/**
|
||||
* @brief Get current VGM yaw, or undefined if VGM not present
|
||||
*/
|
||||
export declare function getYaw(): number | undefined;
|
||||
|
||||
/**
|
||||
* @brief Wait until yaw changed by specified amount
|
||||
*
|
||||
* Returns how much the yaw changed from initial value if it exceeded the
|
||||
* specified yaw angle, or returns 0 if it was not exceeded within the timeout
|
||||
* Or returns undefined if VGM is not present
|
||||
*
|
||||
* @param angle How much the yaw needs to change
|
||||
* @param timeout Maximum time in milliseconds to wait for specified yaw change, default 3000ms
|
||||
*/
|
||||
export declare function deltaYaw(angle: number, timeout?: number): number | undefined;
|
||||
Reference in New Issue
Block a user