@rive-app/canvas-advanced-lite 2.47.1 → 2.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/canvas-advanced-lite",
3
- "version": "2.47.1",
3
+ "version": "2.48.0",
4
4
  "description": "Rive's lite low-level canvas based web api.",
5
5
  "main": "canvas_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -1200,6 +1200,16 @@ export declare class StateMachineInstance {
1200
1200
  */
1201
1201
  textInput(text: string): boolean;
1202
1202
 
1203
+ /**
1204
+ * Submit one frame of gamepad input encoded in the v2 wire format
1205
+ * (see rive-runtime/include/rive/input/gamepad_batch.hpp). Events route to the primary focus
1206
+ * node and bubble up its ancestors; with nothing focused, only scripted drawables receive them.
1207
+ * @param batch - little-endian v2 batch of connected/update/disconnected records
1208
+ * @returns false if the batch was rejected (bad version, malformed record, unknown device,
1209
+ * or no focus manager)
1210
+ */
1211
+ submitGamepadsFromBuffer(batch: Uint8Array): boolean;
1212
+
1203
1213
  /**
1204
1214
  * The selected text of the focused element, or an empty string when nothing with a
1205
1215
  * selection is focused. Used to fill the clipboard on copy/cut. An obscured field
Binary file