steamworks.js-timmy 0.1.6 → 0.1.7

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.
@@ -97,7 +97,12 @@ export declare namespace input {
97
97
  runFrame(): void
98
98
  /** Gets controller's motion sensors */
99
99
  getMotionData(): MotionData | null
100
- triggerHapticPulse(side: VibrateSide, duration: number): void
100
+ /**
101
+ * Triggers a vibration event
102
+ * It has intensity from 0 (off) to 65535 (max)
103
+ * use something like `setTimeout` to make a timed vibration
104
+ */
105
+ triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
101
106
  }
102
107
  export function activateActionSetAll(actionSetHandle: bigint): void
103
108
  export interface AnalogActionVector {
@@ -97,7 +97,12 @@ export declare namespace input {
97
97
  runFrame(): void
98
98
  /** Gets controller's motion sensors */
99
99
  getMotionData(): MotionData | null
100
- triggerHapticPulse(side: VibrateSide, duration: number): void
100
+ /**
101
+ * Triggers a vibration event
102
+ * It has intensity from 0 (off) to 65535 (max)
103
+ * use something like `setTimeout` to make a timed vibration
104
+ */
105
+ triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
101
106
  }
102
107
  export function activateActionSetAll(actionSetHandle: bigint): void
103
108
  export interface AnalogActionVector {
@@ -97,7 +97,12 @@ export declare namespace input {
97
97
  runFrame(): void
98
98
  /** Gets controller's motion sensors */
99
99
  getMotionData(): MotionData | null
100
- triggerHapticPulse(side: VibrateSide, duration: number): void
100
+ /**
101
+ * Triggers a vibration event
102
+ * It has intensity from 0 (off) to 65535 (max)
103
+ * use something like `setTimeout` to make a timed vibration
104
+ */
105
+ triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
101
106
  }
102
107
  export function activateActionSetAll(actionSetHandle: bigint): void
103
108
  export interface AnalogActionVector {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamworks.js-timmy",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "napi": {