steamworks.js-timmy 0.1.9 → 0.1.11

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,10 +93,8 @@ 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)
@@ -572,7 +570,8 @@ export declare namespace input {
572
570
  /** Rotational Velocity Z axis */
573
571
  rotVelZ: number
574
572
  }
575
- export function setInputActionManifestFilePath(path: string): void
573
+ export function runFrame(): void
574
+ export function setInputActionManifestFilePath(path: string): boolean
576
575
  export function shutdown(): void
577
576
  export const enum VibrateSide {
578
577
  Left = 0,
@@ -93,10 +93,8 @@ 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)
@@ -105,6 +103,7 @@ export declare namespace input {
105
103
  triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
106
104
  getAnalogActionOrigins(actionSetHandle: bigint, analogActionHandle: bigint): Array<InputActionOrigins>
107
105
  getDigitalActionOrigins(actionSetHandle: bigint, digitalActionHandle: bigint): Array<InputActionOrigins>
106
+ getCurrentActiveActionSet(): bigint
108
107
  }
109
108
  export function activateActionSetAll(actionSetHandle: bigint): void
110
109
  export interface AnalogActionVector {
@@ -572,7 +571,8 @@ export declare namespace input {
572
571
  /** Rotational Velocity Z axis */
573
572
  rotVelZ: number
574
573
  }
575
- export function setInputActionManifestFilePath(path: string): void
574
+ export function runFrame(): void
575
+ export function setInputActionManifestFilePath(path: string): boolean
576
576
  export function shutdown(): void
577
577
  export const enum VibrateSide {
578
578
  Left = 0,
@@ -93,10 +93,8 @@ 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)
@@ -105,6 +103,7 @@ export declare namespace input {
105
103
  triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
106
104
  getAnalogActionOrigins(actionSetHandle: bigint, analogActionHandle: bigint): Array<InputActionOrigins>
107
105
  getDigitalActionOrigins(actionSetHandle: bigint, digitalActionHandle: bigint): Array<InputActionOrigins>
106
+ getCurrentActiveActionSet(): bigint
108
107
  }
109
108
  export function activateActionSetAll(actionSetHandle: bigint): void
110
109
  export interface AnalogActionVector {
@@ -572,7 +571,8 @@ export declare namespace input {
572
571
  /** Rotational Velocity Z axis */
573
572
  rotVelZ: number
574
573
  }
575
- export function setInputActionManifestFilePath(path: string): void
574
+ export function runFrame(): void
575
+ export function setInputActionManifestFilePath(path: string): boolean
576
576
  export function shutdown(): void
577
577
  export const enum VibrateSide {
578
578
  Left = 0,
@@ -93,10 +93,8 @@ 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)
@@ -105,6 +103,7 @@ export declare namespace input {
105
103
  triggerVibration(leftSpeedMicroSecond: number, rightSpeedMicroSecond: number): void
106
104
  getAnalogActionOrigins(actionSetHandle: bigint, analogActionHandle: bigint): Array<InputActionOrigins>
107
105
  getDigitalActionOrigins(actionSetHandle: bigint, digitalActionHandle: bigint): Array<InputActionOrigins>
106
+ getCurrentActiveActionSet(): bigint
108
107
  }
109
108
  export function activateActionSetAll(actionSetHandle: bigint): void
110
109
  export interface AnalogActionVector {
@@ -572,7 +571,8 @@ export declare namespace input {
572
571
  /** Rotational Velocity Z axis */
573
572
  rotVelZ: number
574
573
  }
575
- export function setInputActionManifestFilePath(path: string): void
574
+ export function runFrame(): void
575
+ export function setInputActionManifestFilePath(path: string): boolean
576
576
  export function shutdown(): void
577
577
  export const enum VibrateSide {
578
578
  Left = 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamworks.js-timmy",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "napi": {