steamworks.js-timmy 0.1.18 → 0.1.19

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
@@ -567,6 +567,16 @@ export declare namespace input {
567
567
  PS5Controller = 'PS5Controller',
568
568
  SteamDeckController = 'SteamDeckController'
569
569
  }
570
+ export const enum KeyboardInputKind {
571
+ /** The text input that will closes on Enter keypress */
572
+ SingleLine = 0,
573
+ /** Text input that will closes on user's demand. */
574
+ MultiLine = 1,
575
+ /** Text input that will make typing email address easier. */
576
+ Email = 2,
577
+ /** Text input that will make typing numeric input easier. */
578
+ Numeric = 3
579
+ }
570
580
  export interface MotionData {
571
581
  /** Absolute Rotation (drift) X axis */
572
582
  rotQuatX: number
@@ -592,6 +602,11 @@ export declare namespace input {
592
602
  export function runFrame(): void
593
603
  export function setInputActionManifestFilePath(path: string): boolean
594
604
  export function shutdown(): void
605
+ /**
606
+ * Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game.
607
+ * The text field position is specified in pixels relative the origin of the game window and is used to position the floating keyboard in a way that doesn't cover the text field.
608
+ */
609
+ export function triggerOnScreenKeyboard(keyboardInputKind: KeyboardInputKind, xPosOfTextInput: number, yPosOfTextInput: number, widthOfTextInput: number, heightOfTextInput: number, dismissedCallback?: (arg?: unknown) => unknown | undefined | null): boolean
595
610
  export const enum VibrateSide {
596
611
  Left = 0,
597
612
  Right = 1
@@ -567,6 +567,16 @@ export declare namespace input {
567
567
  PS5Controller = 'PS5Controller',
568
568
  SteamDeckController = 'SteamDeckController'
569
569
  }
570
+ export const enum KeyboardInputKind {
571
+ /** The text input that will closes on Enter keypress */
572
+ SingleLine = 0,
573
+ /** Text input that will closes on user's demand. */
574
+ MultiLine = 1,
575
+ /** Text input that will make typing email address easier. */
576
+ Email = 2,
577
+ /** Text input that will make typing numeric input easier. */
578
+ Numeric = 3
579
+ }
570
580
  export interface MotionData {
571
581
  /** Absolute Rotation (drift) X axis */
572
582
  rotQuatX: number
@@ -592,6 +602,11 @@ export declare namespace input {
592
602
  export function runFrame(): void
593
603
  export function setInputActionManifestFilePath(path: string): boolean
594
604
  export function shutdown(): void
605
+ /**
606
+ * Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game.
607
+ * The text field position is specified in pixels relative the origin of the game window and is used to position the floating keyboard in a way that doesn't cover the text field.
608
+ */
609
+ export function triggerOnScreenKeyboard(keyboardInputKind: KeyboardInputKind, xPosOfTextInput: number, yPosOfTextInput: number, widthOfTextInput: number, heightOfTextInput: number, dismissedCallback?: (arg?: unknown) => unknown | undefined | null): boolean
595
610
  export const enum VibrateSide {
596
611
  Left = 0,
597
612
  Right = 1
@@ -567,6 +567,16 @@ export declare namespace input {
567
567
  PS5Controller = 'PS5Controller',
568
568
  SteamDeckController = 'SteamDeckController'
569
569
  }
570
+ export const enum KeyboardInputKind {
571
+ /** The text input that will closes on Enter keypress */
572
+ SingleLine = 0,
573
+ /** Text input that will closes on user's demand. */
574
+ MultiLine = 1,
575
+ /** Text input that will make typing email address easier. */
576
+ Email = 2,
577
+ /** Text input that will make typing numeric input easier. */
578
+ Numeric = 3
579
+ }
570
580
  export interface MotionData {
571
581
  /** Absolute Rotation (drift) X axis */
572
582
  rotQuatX: number
@@ -592,6 +602,11 @@ export declare namespace input {
592
602
  export function runFrame(): void
593
603
  export function setInputActionManifestFilePath(path: string): boolean
594
604
  export function shutdown(): void
605
+ /**
606
+ * Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game.
607
+ * The text field position is specified in pixels relative the origin of the game window and is used to position the floating keyboard in a way that doesn't cover the text field.
608
+ */
609
+ export function triggerOnScreenKeyboard(keyboardInputKind: KeyboardInputKind, xPosOfTextInput: number, yPosOfTextInput: number, widthOfTextInput: number, heightOfTextInput: number, dismissedCallback?: (arg?: unknown) => unknown | undefined | null): boolean
595
610
  export const enum VibrateSide {
596
611
  Left = 0,
597
612
  Right = 1
@@ -567,6 +567,16 @@ export declare namespace input {
567
567
  PS5Controller = 'PS5Controller',
568
568
  SteamDeckController = 'SteamDeckController'
569
569
  }
570
+ export const enum KeyboardInputKind {
571
+ /** The text input that will closes on Enter keypress */
572
+ SingleLine = 0,
573
+ /** Text input that will closes on user's demand. */
574
+ MultiLine = 1,
575
+ /** Text input that will make typing email address easier. */
576
+ Email = 2,
577
+ /** Text input that will make typing numeric input easier. */
578
+ Numeric = 3
579
+ }
570
580
  export interface MotionData {
571
581
  /** Absolute Rotation (drift) X axis */
572
582
  rotQuatX: number
@@ -592,6 +602,11 @@ export declare namespace input {
592
602
  export function runFrame(): void
593
603
  export function setInputActionManifestFilePath(path: string): boolean
594
604
  export function shutdown(): void
605
+ /**
606
+ * Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game.
607
+ * The text field position is specified in pixels relative the origin of the game window and is used to position the floating keyboard in a way that doesn't cover the text field.
608
+ */
609
+ export function triggerOnScreenKeyboard(keyboardInputKind: KeyboardInputKind, xPosOfTextInput: number, yPosOfTextInput: number, widthOfTextInput: number, heightOfTextInput: number, dismissedCallback?: (arg?: unknown) => unknown | undefined | null): boolean
595
610
  export const enum VibrateSide {
596
611
  Left = 0,
597
612
  Right = 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamworks.js-timmy",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "napi": {