Skip to content

Commit

Permalink
Added example
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Dec 23, 2024
1 parent 5712b7a commit c9bd84e
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 204 deletions.
81 changes: 81 additions & 0 deletions api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,87 @@
],
"summary": "Returns the Steam server time in Unix epoch format. (Number of seconds since Jan 1, 1970 UTC)",
"usage": null
},
{
"description": "",
"has_params": true,
"has_returns": true,
"name": "utils_show_floating_gamepad_text_input",
"params": [
{
"description": "EFloatingGamepadTextInputMode",
"name": "mode",
"type": "number"
},
{
"description": "Text field x position",
"name": "x",
"type": "number"
},
{
"description": "Text field y position",
"name": "y",
"type": "number"
},
{
"description": "Text field width",
"name": "width",
"type": "number"
},
{
"description": "Text field height",
"name": "height",
"type": "number"
}
],
"params_string": "mode,x,y,width,height",
"returns": [
{
"description": "True if the floating keyboard was shown, otherwise, false.",
"name": "result",
"type": "bool"
}
],
"summary": "Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game.",
"usage": null
},
{
"description": "",
"has_params": true,
"has_returns": true,
"name": "utils_show_gamepad_text_input",
"params": [
{
"description": "EGamepadTextInputMode",
"name": "input_mode",
"type": "number"
},
{
"description": "EGamepadTextInputLineMode",
"name": "line_input_mode",
"type": "number"
},
{
"description": "Sets the description that should inform the user what the input dialog is for",
"name": "description",
"type": "string"
},
{
"description": "Sets the preexisting text which the user can edit.",
"name": "existing_text",
"type": "string"
}
],
"params_string": "input_mode,line_input_mode,description,existing_text",
"returns": [
{
"description": "True if the big picture overlay is running; otherwise, false",
"name": "result",
"type": "bool"
}
],
"summary": "Activates the Big Picture text input dialog which only supports gamepad input.",
"usage": null
}
],
"filename": "steam/src/steam_utils.cpp",
Expand Down
29 changes: 29 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -675,5 +675,34 @@ RETURNS
* `Server` [`number`] - Time


### utils_show_floating_gamepad_text_input(mode,x,y,width,height)
Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game.


PARAMS
* `mode` [`number`] - EFloatingGamepadTextInputMode
* `x` [`number`] - Text field x position
* `y` [`number`] - Text field y position
* `width` [`number`] - Text field width
* `height` [`number`] - Text field height

RETURNS
* `result` [`bool`] - True if the floating keyboard was shown, otherwise, false.


### utils_show_gamepad_text_input(input_mode,line_input_mode,description,existing_text)
Activates the Big Picture text input dialog which only supports gamepad input.


PARAMS
* `input_mode` [`number`] - EGamepadTextInputMode
* `line_input_mode` [`number`] - EGamepadTextInputLineMode
* `description` [`string`] - Sets the description that should inform the user what the input dialog is for
* `existing_text` [`string`] - Sets the preexisting text which the user can edit.

RETURNS
* `result` [`bool`] - True if the big picture overlay is running; otherwise, false


---

Loading

0 comments on commit c9bd84e

Please sign in to comment.