steamworks.js-timmy 0.1.6 → 0.1.8
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 +15 -1
- package/dist/linux64/client.d.ts +6 -1
- package/dist/linux64/steamworksjs.linux-x64-gnu.node +0 -0
- package/dist/osx/client.d.ts +6 -1
- package/dist/osx/steamworksjs.darwin-arm64.node +0 -0
- package/dist/osx/steamworksjs.darwin-x64.node +0 -0
- package/dist/win64/client.d.ts +6 -1
- package/dist/win64/steamworksjs.win32-x64-msvc.node +0 -0
- package/index.d.ts +0 -52
- package/package.json +1 -1
package/client.d.ts
CHANGED
|
@@ -97,17 +97,26 @@ export declare namespace input {
|
|
|
97
97
|
runFrame(): void
|
|
98
98
|
/** Gets controller's motion sensors */
|
|
99
99
|
getMotionData(): MotionData | null
|
|
100
|
-
|
|
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
|
}
|
|
107
|
+
export function activateActionSetAll(actionSetHandle: bigint): void
|
|
102
108
|
export interface AnalogActionVector {
|
|
103
109
|
x: number
|
|
104
110
|
y: number
|
|
105
111
|
}
|
|
112
|
+
export function getActionHandle(actionName: string): bigint
|
|
106
113
|
export function getActionSet(actionSetName: string): bigint
|
|
107
114
|
export function getAnalogAction(actionName: string): bigint
|
|
108
115
|
export function getControllers(): Array<Controller>
|
|
109
116
|
export function getDigitalAction(actionName: string): bigint
|
|
117
|
+
export function getFilePathForAction(actionHandle: InputActionOrigins): string
|
|
110
118
|
export function init(): void
|
|
119
|
+
/** The conversion will return 32767 if the value is not found */
|
|
111
120
|
export const enum InputActionOrigins {
|
|
112
121
|
None = 0,
|
|
113
122
|
SteamControllerA = 1,
|
|
@@ -561,7 +570,12 @@ export declare namespace input {
|
|
|
561
570
|
/** Rotational Velocity Z axis */
|
|
562
571
|
rotVelZ: number
|
|
563
572
|
}
|
|
573
|
+
export function setInputActionManifestFilePath(path: string): void
|
|
564
574
|
export function shutdown(): void
|
|
575
|
+
export const enum VibrateSide {
|
|
576
|
+
Left = 0,
|
|
577
|
+
Right = 1
|
|
578
|
+
}
|
|
565
579
|
}
|
|
566
580
|
|
|
567
581
|
export declare namespace localplayer {
|
package/dist/linux64/client.d.ts
CHANGED
|
@@ -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
|
-
|
|
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 {
|
|
Binary file
|
package/dist/osx/client.d.ts
CHANGED
|
@@ -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
|
-
|
|
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 {
|
|
Binary file
|
|
Binary file
|
package/dist/win64/client.d.ts
CHANGED
|
@@ -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
|
-
|
|
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 {
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -3,55 +3,3 @@ export function restartAppIfNecessary(appId: number): boolean;
|
|
|
3
3
|
export function electronEnableSteamOverlay(disableEachFrameInvalidation?: boolean): void;
|
|
4
4
|
export type Client = typeof import("./client.d");
|
|
5
5
|
export const SteamCallback: typeof import("./client.d").callback.SteamCallback;
|
|
6
|
-
export const Ticket: typeof import("./client.d").auth.Ticket;
|
|
7
|
-
export const Handle: typeof import("./client.d").callback.Handle;
|
|
8
|
-
export interface FileInfo {
|
|
9
|
-
name: string;
|
|
10
|
-
size: bigint;
|
|
11
|
-
}
|
|
12
|
-
export const Controller: typeof import("./client.d").input.Controller;
|
|
13
|
-
export interface AnalogActionVector {
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
}
|
|
17
|
-
export const InputActionOrigins: typeof import("./client.d").input.InputActionOrigins;
|
|
18
|
-
export const InputType: typeof import("./client.d").input.InputType;
|
|
19
|
-
export interface MotionData {
|
|
20
|
-
/** Absolute Rotation (drift) X axis */
|
|
21
|
-
rotQuatX: number
|
|
22
|
-
/** Absolute Rotation (drift) Y axis */
|
|
23
|
-
rotQuatY: number
|
|
24
|
-
/** Absolute Rotation (drift) Z axis */
|
|
25
|
-
rotQuatZ: number
|
|
26
|
-
/** Absolute Rotation (drift) W axis */
|
|
27
|
-
rotQuatW: number
|
|
28
|
-
/** Positional Acceleration X axis */
|
|
29
|
-
posAccelX: number
|
|
30
|
-
/** Positional Acceleration Y axis */
|
|
31
|
-
posAccelY: number
|
|
32
|
-
/** Positional Acceleration Z axis */
|
|
33
|
-
posAccelZ: number
|
|
34
|
-
/** Rotational Velocity X axis */
|
|
35
|
-
rotVelX: number
|
|
36
|
-
/** Rotational Velocity Y axis */
|
|
37
|
-
rotVelY: number
|
|
38
|
-
/** Rotational Velocity Z axis */
|
|
39
|
-
rotVelZ: number
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface PlayerSteamId {
|
|
43
|
-
steamId64: bigint
|
|
44
|
-
steamId32: string
|
|
45
|
-
accountId: number
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export const Lobby: typeof import("./client.d").matchmaking.Lobby;
|
|
49
|
-
export const LobbyType: typeof import("./client.d").matchmaking.LobbyType;
|
|
50
|
-
export interface P2PPacket {
|
|
51
|
-
data: Buffer
|
|
52
|
-
size: number
|
|
53
|
-
steamId: PlayerSteamId
|
|
54
|
-
}
|
|
55
|
-
export const SendType: typeof import("./client.d").networking.SendType;
|
|
56
|
-
export const Dialog: typeof import("./client.d").overlay.Dialog;
|
|
57
|
-
export const StoreFlag: typeof import("./client.d").overlay.StoreFlag;
|