steamworks.js-timmy 0.1.2 → 0.1.3

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
@@ -97,6 +97,7 @@ export declare namespace input {
97
97
  runFrame(): void
98
98
  /** Gets controller's motion sensors */
99
99
  getMotionData(): MotionData | null
100
+ getFilePathForAction(actionHandle: InputActionOrigins): string
100
101
  }
101
102
  export interface AnalogActionVector {
102
103
  x: number
@@ -107,6 +108,420 @@ export declare namespace input {
107
108
  export function getControllers(): Array<Controller>
108
109
  export function getDigitalAction(actionName: string): bigint
109
110
  export function init(): void
111
+ export const enum InputActionOrigins {
112
+ None = 0,
113
+ SteamControllerA = 1,
114
+ SteamControllerB = 2,
115
+ SteamControllerX = 3,
116
+ SteamControllerY = 4,
117
+ SteamControllerLeftBumper = 5,
118
+ SteamControllerRightBumper = 6,
119
+ SteamControllerLeftGrip = 7,
120
+ SteamControllerRightGrip = 8,
121
+ SteamControllerStart = 9,
122
+ SteamControllerBack = 10,
123
+ SteamControllerLeftPadTouch = 11,
124
+ SteamControllerLeftPadSwipe = 12,
125
+ SteamControllerLeftPadClick = 13,
126
+ SteamControllerLeftPadDPadNorth = 14,
127
+ SteamControllerLeftPadDPadSouth = 15,
128
+ SteamControllerLeftPadDPadWest = 16,
129
+ SteamControllerLeftPadDPadEast = 17,
130
+ SteamControllerRightPadTouch = 18,
131
+ SteamControllerRightPadSwipe = 19,
132
+ SteamControllerRightPadClick = 20,
133
+ SteamControllerRightPadDPadNorth = 21,
134
+ SteamControllerRightPadDPadSouth = 22,
135
+ SteamControllerRightPadDPadWest = 23,
136
+ SteamControllerRightPadDPadEast = 24,
137
+ SteamControllerLeftTriggerPull = 25,
138
+ SteamControllerLeftTriggerClick = 26,
139
+ SteamControllerRightTriggerPull = 27,
140
+ SteamControllerRightTriggerClick = 28,
141
+ SteamControllerLeftStickMove = 29,
142
+ SteamControllerLeftStickClick = 30,
143
+ SteamControllerLeftStickDPadNorth = 31,
144
+ SteamControllerLeftStickDPadSouth = 32,
145
+ SteamControllerLeftStickDPadWest = 33,
146
+ SteamControllerLeftStickDPadEast = 34,
147
+ SteamControllerGyroMove = 35,
148
+ SteamControllerGyroPitch = 36,
149
+ SteamControllerGyroYaw = 37,
150
+ SteamControllerGyroRoll = 38,
151
+ SteamControllerReserved0 = 39,
152
+ SteamControllerReserved1 = 40,
153
+ SteamControllerReserved2 = 41,
154
+ SteamControllerReserved3 = 42,
155
+ SteamControllerReserved4 = 43,
156
+ SteamControllerReserved5 = 44,
157
+ SteamControllerReserved6 = 45,
158
+ SteamControllerReserved7 = 46,
159
+ SteamControllerReserved8 = 47,
160
+ SteamControllerReserved9 = 48,
161
+ SteamControllerReserved10 = 49,
162
+ PS4X = 50,
163
+ PS4Circle = 51,
164
+ PS4Triangle = 52,
165
+ PS4Square = 53,
166
+ PS4LeftBumper = 54,
167
+ PS4RightBumper = 55,
168
+ PS4Options = 56,
169
+ PS4Share = 57,
170
+ PS4LeftPadTouch = 58,
171
+ PS4LeftPadSwipe = 59,
172
+ PS4LeftPadClick = 60,
173
+ PS4LeftPadDPadNorth = 61,
174
+ PS4LeftPadDPadSouth = 62,
175
+ PS4LeftPadDPadWest = 63,
176
+ PS4LeftPadDPadEast = 64,
177
+ PS4RightPadTouch = 65,
178
+ PS4RightPadSwipe = 66,
179
+ PS4RightPadClick = 67,
180
+ PS4RightPadDPadNorth = 68,
181
+ PS4RightPadDPadSouth = 69,
182
+ PS4RightPadDPadWest = 70,
183
+ PS4RightPadDPadEast = 71,
184
+ PS4CenterPadTouch = 72,
185
+ PS4CenterPadSwipe = 73,
186
+ PS4CenterPadClick = 74,
187
+ PS4CenterPadDPadNorth = 75,
188
+ PS4CenterPadDPadSouth = 76,
189
+ PS4CenterPadDPadWest = 77,
190
+ PS4CenterPadDPadEast = 78,
191
+ PS4LeftTriggerPull = 79,
192
+ PS4LeftTriggerClick = 80,
193
+ PS4RightTriggerPull = 81,
194
+ PS4RightTriggerClick = 82,
195
+ PS4LeftStickMove = 83,
196
+ PS4LeftStickClick = 84,
197
+ PS4LeftStickDPadNorth = 85,
198
+ PS4LeftStickDPadSouth = 86,
199
+ PS4LeftStickDPadWest = 87,
200
+ PS4LeftStickDPadEast = 88,
201
+ PS4RightStickMove = 89,
202
+ PS4RightStickClick = 90,
203
+ PS4RightStickDPadNorth = 91,
204
+ PS4RightStickDPadSouth = 92,
205
+ PS4RightStickDPadWest = 93,
206
+ PS4RightStickDPadEast = 94,
207
+ PS4DPadNorth = 95,
208
+ PS4DPadSouth = 96,
209
+ PS4DPadWest = 97,
210
+ PS4DPadEast = 98,
211
+ PS4GyroMove = 99,
212
+ PS4GyroPitch = 100,
213
+ PS4GyroYaw = 101,
214
+ PS4GyroRoll = 102,
215
+ PS4DPadMove = 103,
216
+ PS4Reserved1 = 104,
217
+ PS4Reserved2 = 105,
218
+ PS4Reserved3 = 106,
219
+ PS4Reserved4 = 107,
220
+ PS4Reserved5 = 108,
221
+ PS4Reserved6 = 109,
222
+ PS4Reserved7 = 110,
223
+ PS4Reserved8 = 111,
224
+ PS4Reserved9 = 112,
225
+ PS4Reserved10 = 113,
226
+ XBoxOneA = 114,
227
+ XBoxOneB = 115,
228
+ XBoxOneX = 116,
229
+ XBoxOneY = 117,
230
+ XBoxOneLeftBumper = 118,
231
+ XBoxOneRightBumper = 119,
232
+ XBoxOneMenu = 120,
233
+ XBoxOneView = 121,
234
+ XBoxOneLeftTriggerPull = 122,
235
+ XBoxOneLeftTriggerClick = 123,
236
+ XBoxOneRightTriggerPull = 124,
237
+ XBoxOneRightTriggerClick = 125,
238
+ XBoxOneLeftStickMove = 126,
239
+ XBoxOneLeftStickClick = 127,
240
+ XBoxOneLeftStickDPadNorth = 128,
241
+ XBoxOneLeftStickDPadSouth = 129,
242
+ XBoxOneLeftStickDPadWest = 130,
243
+ XBoxOneLeftStickDPadEast = 131,
244
+ XBoxOneRightStickMove = 132,
245
+ XBoxOneRightStickClick = 133,
246
+ XBoxOneRightStickDPadNorth = 134,
247
+ XBoxOneRightStickDPadSouth = 135,
248
+ XBoxOneRightStickDPadWest = 136,
249
+ XBoxOneRightStickDPadEast = 137,
250
+ XBoxOneDPadNorth = 138,
251
+ XBoxOneDPadSouth = 139,
252
+ XBoxOneDPadWest = 140,
253
+ XBoxOneDPadEast = 141,
254
+ XBoxOneDPadMove = 142,
255
+ XBoxOneLeftGripLower = 143,
256
+ XBoxOneLeftGripUpper = 144,
257
+ XBoxOneRightGripLower = 145,
258
+ XBoxOneRightGripUpper = 146,
259
+ XBoxOneShare = 147,
260
+ XBoxOneReserved6 = 148,
261
+ XBoxOneReserved7 = 149,
262
+ XBoxOneReserved8 = 150,
263
+ XBoxOneReserved9 = 151,
264
+ XBoxOneReserved10 = 152,
265
+ XBox360A = 153,
266
+ XBox360B = 154,
267
+ XBox360X = 155,
268
+ XBox360Y = 156,
269
+ XBox360LeftBumper = 157,
270
+ XBox360RightBumper = 158,
271
+ XBox360Start = 159,
272
+ XBox360Back = 160,
273
+ XBox360LeftTriggerPull = 161,
274
+ XBox360LeftTriggerClick = 162,
275
+ XBox360RightTriggerPull = 163,
276
+ XBox360RightTriggerClick = 164,
277
+ XBox360LeftStickMove = 165,
278
+ XBox360LeftStickClick = 166,
279
+ XBox360LeftStickDPadNorth = 167,
280
+ XBox360LeftStickDPadSouth = 168,
281
+ XBox360LeftStickDPadWest = 169,
282
+ XBox360LeftStickDPadEast = 170,
283
+ XBox360RightStickMove = 171,
284
+ XBox360RightStickClick = 172,
285
+ XBox360RightStickDPadNorth = 173,
286
+ XBox360RightStickDPadSouth = 174,
287
+ XBox360RightStickDPadWest = 175,
288
+ XBox360RightStickDPadEast = 176,
289
+ XBox360DPadNorth = 177,
290
+ XBox360DPadSouth = 178,
291
+ XBox360DPadWest = 179,
292
+ XBox360DPadEast = 180,
293
+ XBox360DPadMove = 181,
294
+ XBox360Reserved1 = 182,
295
+ XBox360Reserved2 = 183,
296
+ XBox360Reserved3 = 184,
297
+ XBox360Reserved4 = 185,
298
+ XBox360Reserved5 = 186,
299
+ XBox360Reserved6 = 187,
300
+ XBox360Reserved7 = 188,
301
+ XBox360Reserved8 = 189,
302
+ XBox360Reserved9 = 190,
303
+ XBox360Reserved10 = 191,
304
+ SwitchA = 192,
305
+ SwitchB = 193,
306
+ SwitchX = 194,
307
+ SwitchY = 195,
308
+ SwitchLeftBumper = 196,
309
+ SwitchRightBumper = 197,
310
+ SwitchPlus = 198,
311
+ SwitchMinus = 199,
312
+ SwitchCapture = 200,
313
+ SwitchLeftTriggerPull = 201,
314
+ SwitchLeftTriggerClick = 202,
315
+ SwitchRightTriggerPull = 203,
316
+ SwitchRightTriggerClick = 204,
317
+ SwitchLeftStickMove = 205,
318
+ SwitchLeftStickClick = 206,
319
+ SwitchLeftStickDPadNorth = 207,
320
+ SwitchLeftStickDPadSouth = 208,
321
+ SwitchLeftStickDPadWest = 209,
322
+ SwitchLeftStickDPadEast = 210,
323
+ SwitchRightStickMove = 211,
324
+ SwitchRightStickClick = 212,
325
+ SwitchRightStickDPadNorth = 213,
326
+ SwitchRightStickDPadSouth = 214,
327
+ SwitchRightStickDPadWest = 215,
328
+ SwitchRightStickDPadEast = 216,
329
+ SwitchDPadNorth = 217,
330
+ SwitchDPadSouth = 218,
331
+ SwitchDPadWest = 219,
332
+ SwitchDPadEast = 220,
333
+ SwitchProGyroMove = 221,
334
+ SwitchProGyroPitch = 222,
335
+ SwitchProGyroYaw = 223,
336
+ SwitchProGyroRoll = 224,
337
+ SwitchDPadMove = 225,
338
+ SwitchReserved1 = 226,
339
+ SwitchReserved2 = 227,
340
+ SwitchReserved3 = 228,
341
+ SwitchReserved4 = 229,
342
+ SwitchReserved5 = 230,
343
+ SwitchReserved6 = 231,
344
+ SwitchReserved7 = 232,
345
+ SwitchReserved8 = 233,
346
+ SwitchReserved9 = 234,
347
+ SwitchReserved10 = 235,
348
+ SwitchRightGyroMove = 236,
349
+ SwitchRightGyroPitch = 237,
350
+ SwitchRightGyroYaw = 238,
351
+ SwitchRightGyroRoll = 239,
352
+ SwitchLeftGyroMove = 240,
353
+ SwitchLeftGyroPitch = 241,
354
+ SwitchLeftGyroYaw = 242,
355
+ SwitchLeftGyroRoll = 243,
356
+ SwitchLeftGripLower = 244,
357
+ SwitchLeftGripUpper = 245,
358
+ SwitchRightGripLower = 246,
359
+ SwitchRightGripUpper = 247,
360
+ SwitchJoyConButtonN = 248,
361
+ SwitchJoyConButtonE = 249,
362
+ SwitchJoyConButtonS = 250,
363
+ SwitchJoyConButtonW = 251,
364
+ SwitchReserved15 = 252,
365
+ SwitchReserved16 = 253,
366
+ SwitchReserved17 = 254,
367
+ SwitchReserved18 = 255,
368
+ SwitchReserved19 = 256,
369
+ SwitchReserved20 = 257,
370
+ PS5X = 258,
371
+ PS5Circle = 259,
372
+ PS5Triangle = 260,
373
+ PS5Square = 261,
374
+ PS5LeftBumper = 262,
375
+ PS5RightBumper = 263,
376
+ PS5Option = 264,
377
+ PS5Create = 265,
378
+ PS5Mute = 266,
379
+ PS5LeftPadTouch = 267,
380
+ PS5LeftPadSwipe = 268,
381
+ PS5LeftPadClick = 269,
382
+ PS5LeftPadDPadNorth = 270,
383
+ PS5LeftPadDPadSouth = 271,
384
+ PS5LeftPadDPadWest = 272,
385
+ PS5LeftPadDPadEast = 273,
386
+ PS5RightPadTouch = 274,
387
+ PS5RightPadSwipe = 275,
388
+ PS5RightPadClick = 276,
389
+ PS5RightPadDPadNorth = 277,
390
+ PS5RightPadDPadSouth = 278,
391
+ PS5RightPadDPadWest = 279,
392
+ PS5RightPadDPadEast = 280,
393
+ PS5CenterPadTouch = 281,
394
+ PS5CenterPadSwipe = 282,
395
+ PS5CenterPadClick = 283,
396
+ PS5CenterPadDPadNorth = 284,
397
+ PS5CenterPadDPadSouth = 285,
398
+ PS5CenterPadDPadWest = 286,
399
+ PS5CenterPadDPadEast = 287,
400
+ PS5LeftTriggerPull = 288,
401
+ PS5LeftTriggerClick = 289,
402
+ PS5RightTriggerPull = 290,
403
+ PS5RightTriggerClick = 291,
404
+ PS5LeftStickMove = 292,
405
+ PS5LeftStickClick = 293,
406
+ PS5LeftStickDPadNorth = 294,
407
+ PS5LeftStickDPadSouth = 295,
408
+ PS5LeftStickDPadWest = 296,
409
+ PS5LeftStickDPadEast = 297,
410
+ PS5RightStickMove = 298,
411
+ PS5RightStickClick = 299,
412
+ PS5RightStickDPadNorth = 300,
413
+ PS5RightStickDPadSouth = 301,
414
+ PS5RightStickDPadWest = 302,
415
+ PS5RightStickDPadEast = 303,
416
+ PS5DPadNorth = 304,
417
+ PS5DPadSouth = 305,
418
+ PS5DPadWest = 306,
419
+ PS5DPadEast = 307,
420
+ PS5GyroMove = 308,
421
+ PS5GyroPitch = 309,
422
+ PS5GyroYaw = 310,
423
+ PS5GyroRoll = 311,
424
+ PS5DPadMove = 312,
425
+ PS5LeftGrip = 313,
426
+ PS5RightGrip = 314,
427
+ PS5LeftFn = 315,
428
+ PS5RightFn = 316,
429
+ PS5Reserved5 = 317,
430
+ PS5Reserved6 = 318,
431
+ PS5Reserved7 = 319,
432
+ PS5Reserved8 = 320,
433
+ PS5Reserved9 = 321,
434
+ PS5Reserved10 = 322,
435
+ PS5Reserved11 = 323,
436
+ PS5Reserved12 = 324,
437
+ PS5Reserved13 = 325,
438
+ PS5Reserved14 = 326,
439
+ PS5Reserved15 = 327,
440
+ PS5Reserved16 = 328,
441
+ PS5Reserved17 = 329,
442
+ PS5Reserved18 = 330,
443
+ PS5Reserved19 = 331,
444
+ PS5Reserved20 = 332,
445
+ SteamDeckA = 333,
446
+ SteamDeckB = 334,
447
+ SteamDeckX = 335,
448
+ SteamDeckY = 336,
449
+ SteamDeckL1 = 337,
450
+ SteamDeckR1 = 338,
451
+ SteamDeckMenu = 339,
452
+ SteamDeckView = 340,
453
+ SteamDeckLeftPadTouch = 341,
454
+ SteamDeckLeftPadSwipe = 342,
455
+ SteamDeckLeftPadClick = 343,
456
+ SteamDeckLeftPadDPadNorth = 344,
457
+ SteamDeckLeftPadDPadSouth = 345,
458
+ SteamDeckLeftPadDPadWest = 346,
459
+ SteamDeckLeftPadDPadEast = 347,
460
+ SteamDeckRightPadTouch = 348,
461
+ SteamDeckRightPadSwipe = 349,
462
+ SteamDeckRightPadClick = 350,
463
+ SteamDeckRightPadDPadNorth = 351,
464
+ SteamDeckRightPadDPadSouth = 352,
465
+ SteamDeckRightPadDPadWest = 353,
466
+ SteamDeckRightPadDPadEast = 354,
467
+ SteamDeckL2SoftPull = 355,
468
+ SteamDeckL2 = 356,
469
+ SteamDeckR2SoftPull = 357,
470
+ SteamDeckR2 = 358,
471
+ SteamDeckLeftStickMove = 359,
472
+ SteamDeckL3 = 360,
473
+ SteamDeckLeftStickDPadNorth = 361,
474
+ SteamDeckLeftStickDPadSouth = 362,
475
+ SteamDeckLeftStickDPadWest = 363,
476
+ SteamDeckLeftStickDPadEast = 364,
477
+ SteamDeckLeftStickTouch = 365,
478
+ SteamDeckRightStickMove = 366,
479
+ SteamDeckR3 = 367,
480
+ SteamDeckRightStickDPadNorth = 368,
481
+ SteamDeckRightStickDPadSouth = 369,
482
+ SteamDeckRightStickDPadWest = 370,
483
+ SteamDeckRightStickDPadEast = 371,
484
+ SteamDeckRightStickTouch = 372,
485
+ SteamDeckL4 = 373,
486
+ SteamDeckR4 = 374,
487
+ SteamDeckL5 = 375,
488
+ SteamDeckR5 = 376,
489
+ SteamDeckDPadMove = 377,
490
+ SteamDeckDPadNorth = 378,
491
+ SteamDeckDPadSouth = 379,
492
+ SteamDeckDPadWest = 380,
493
+ SteamDeckDPadEast = 381,
494
+ SteamDeckGyroMove = 382,
495
+ SteamDeckGyroPitch = 383,
496
+ SteamDeckGyroYaw = 384,
497
+ SteamDeckGyroRoll = 385,
498
+ SteamDeckReserved1 = 386,
499
+ SteamDeckReserved2 = 387,
500
+ SteamDeckReserved3 = 388,
501
+ SteamDeckReserved4 = 389,
502
+ SteamDeckReserved5 = 390,
503
+ SteamDeckReserved6 = 391,
504
+ SteamDeckReserved7 = 392,
505
+ SteamDeckReserved8 = 393,
506
+ SteamDeckReserved9 = 394,
507
+ SteamDeckReserved10 = 395,
508
+ SteamDeckReserved11 = 396,
509
+ SteamDeckReserved12 = 397,
510
+ SteamDeckReserved13 = 398,
511
+ SteamDeckReserved14 = 399,
512
+ SteamDeckReserved15 = 400,
513
+ SteamDeckReserved16 = 401,
514
+ SteamDeckReserved17 = 402,
515
+ SteamDeckReserved18 = 403,
516
+ SteamDeckReserved19 = 404,
517
+ SteamDeckReserved20 = 405,
518
+ HoripadM1 = 406,
519
+ HoripadM2 = 407,
520
+ HoripadL4 = 408,
521
+ HoripadR4 = 409,
522
+ Count = 410,
523
+ MaximumPossibleValue = 32767
524
+ }
110
525
  export const enum InputType {
111
526
  Unknown = 'Unknown',
112
527
  SteamController = 'SteamController',