steamworks.js-timmy 0.1.8 → 0.1.10

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/client.d.ts CHANGED
@@ -93,16 +93,16 @@ export declare namespace input {
93
93
  getAnalogActionVector(actionHandle: bigint): AnalogActionVector
94
94
  getType(): InputType
95
95
  getHandle(): bigint
96
- /** Gets controller latest data, best use for low latency if you call this all the time */
97
- runFrame(): void
98
96
  /** Gets controller's motion sensors */
99
- getMotionData(): MotionData | null
97
+ getMotionData(): MotionData
100
98
  /**
101
99
  * Triggers a vibration event
102
100
  * It has intensity from 0 (off) to 65535 (max)
103
101
  * use something like `setTimeout` to make a timed vibration
104
102
  */
105
103
  triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
104
+ getAnalogActionOrigins(actionSetHandle: bigint, analogActionHandle: bigint): Array<InputActionOrigins>
105
+ getDigitalActionOrigins(actionSetHandle: bigint, digitalActionHandle: bigint): Array<InputActionOrigins>
106
106
  }
107
107
  export function activateActionSetAll(actionSetHandle: bigint): void
108
108
  export interface AnalogActionVector {
@@ -570,7 +570,8 @@ export declare namespace input {
570
570
  /** Rotational Velocity Z axis */
571
571
  rotVelZ: number
572
572
  }
573
- export function setInputActionManifestFilePath(path: string): void
573
+ export function runFrame(): void
574
+ export function setInputActionManifestFilePath(path: string): boolean
574
575
  export function shutdown(): void
575
576
  export const enum VibrateSide {
576
577
  Left = 0,
@@ -93,16 +93,16 @@ export declare namespace input {
93
93
  getAnalogActionVector(actionHandle: bigint): AnalogActionVector
94
94
  getType(): InputType
95
95
  getHandle(): bigint
96
- /** Gets controller latest data, best use for low latency if you call this all the time */
97
- runFrame(): void
98
96
  /** Gets controller's motion sensors */
99
- getMotionData(): MotionData | null
97
+ getMotionData(): MotionData
100
98
  /**
101
99
  * Triggers a vibration event
102
100
  * It has intensity from 0 (off) to 65535 (max)
103
101
  * use something like `setTimeout` to make a timed vibration
104
102
  */
105
103
  triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
104
+ getAnalogActionOrigins(actionSetHandle: bigint, analogActionHandle: bigint): Array<InputActionOrigins>
105
+ getDigitalActionOrigins(actionSetHandle: bigint, digitalActionHandle: bigint): Array<InputActionOrigins>
106
106
  }
107
107
  export function activateActionSetAll(actionSetHandle: bigint): void
108
108
  export interface AnalogActionVector {
@@ -570,7 +570,8 @@ export declare namespace input {
570
570
  /** Rotational Velocity Z axis */
571
571
  rotVelZ: number
572
572
  }
573
- export function setInputActionManifestFilePath(path: string): void
573
+ export function runFrame(): void
574
+ export function setInputActionManifestFilePath(path: string): boolean
574
575
  export function shutdown(): void
575
576
  export const enum VibrateSide {
576
577
  Left = 0,
@@ -93,16 +93,16 @@ export declare namespace input {
93
93
  getAnalogActionVector(actionHandle: bigint): AnalogActionVector
94
94
  getType(): InputType
95
95
  getHandle(): bigint
96
- /** Gets controller latest data, best use for low latency if you call this all the time */
97
- runFrame(): void
98
96
  /** Gets controller's motion sensors */
99
- getMotionData(): MotionData | null
97
+ getMotionData(): MotionData
100
98
  /**
101
99
  * Triggers a vibration event
102
100
  * It has intensity from 0 (off) to 65535 (max)
103
101
  * use something like `setTimeout` to make a timed vibration
104
102
  */
105
103
  triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
104
+ getAnalogActionOrigins(actionSetHandle: bigint, analogActionHandle: bigint): Array<InputActionOrigins>
105
+ getDigitalActionOrigins(actionSetHandle: bigint, digitalActionHandle: bigint): Array<InputActionOrigins>
106
106
  }
107
107
  export function activateActionSetAll(actionSetHandle: bigint): void
108
108
  export interface AnalogActionVector {
@@ -570,7 +570,8 @@ export declare namespace input {
570
570
  /** Rotational Velocity Z axis */
571
571
  rotVelZ: number
572
572
  }
573
- export function setInputActionManifestFilePath(path: string): void
573
+ export function runFrame(): void
574
+ export function setInputActionManifestFilePath(path: string): boolean
574
575
  export function shutdown(): void
575
576
  export const enum VibrateSide {
576
577
  Left = 0,
@@ -93,16 +93,16 @@ export declare namespace input {
93
93
  getAnalogActionVector(actionHandle: bigint): AnalogActionVector
94
94
  getType(): InputType
95
95
  getHandle(): bigint
96
- /** Gets controller latest data, best use for low latency if you call this all the time */
97
- runFrame(): void
98
96
  /** Gets controller's motion sensors */
99
- getMotionData(): MotionData | null
97
+ getMotionData(): MotionData
100
98
  /**
101
99
  * Triggers a vibration event
102
100
  * It has intensity from 0 (off) to 65535 (max)
103
101
  * use something like `setTimeout` to make a timed vibration
104
102
  */
105
103
  triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
104
+ getAnalogActionOrigins(actionSetHandle: bigint, analogActionHandle: bigint): Array<InputActionOrigins>
105
+ getDigitalActionOrigins(actionSetHandle: bigint, digitalActionHandle: bigint): Array<InputActionOrigins>
106
106
  }
107
107
  export function activateActionSetAll(actionSetHandle: bigint): void
108
108
  export interface AnalogActionVector {
@@ -570,7 +570,8 @@ export declare namespace input {
570
570
  /** Rotational Velocity Z axis */
571
571
  rotVelZ: number
572
572
  }
573
- export function setInputActionManifestFilePath(path: string): void
573
+ export function runFrame(): void
574
+ export function setInputActionManifestFilePath(path: string): boolean
574
575
  export function shutdown(): void
575
576
  export const enum VibrateSide {
576
577
  Left = 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamworks.js-timmy",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "napi": {