-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Document 0xD1C7CB175E012964 Added description, parameter definition, return value and more * Update PassKeyboardInputToScaleform.md Slight nitpicks. --------- Co-authored-by: ammonia-cfx <[email protected]>
- Loading branch information
Showing
2 changed files
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
ns: GRAPHICS | ||
aliases: ["0xD1C7CB175E012964"] | ||
--- | ||
## PASS_KEYBOARD_INPUT_TO_SCALEFORM | ||
|
||
```c | ||
// 0xD1C7CB175E012964 0xE9183D3A | ||
BOOL PASS_KEYBOARD_INPUT_TO_SCALEFORM(int scaleformHandle); | ||
``` | ||
Passes keyboard input to scaleform. You must call this native every frame. Once an input occurs, this native will return true and call `SET_PC_KEY` scaleform movie method with the key that has been inputted. | ||
The key parameter which is passed to the scaleform can also be: "BACKSPACE", "ENTER" or "\x1b" (Which is ESC). | ||
This native is only used in `web_browser.c` as of game build 2944. | ||
## Parameters | ||
* **scaleformHandle**: Scaleform movie handle returned by [REQUEST_SCALEFORM_MOVIE](#_0x11FE353CF9733E6F) | ||
## Return value | ||
Bool indicating if an input occurred this frame and was passed to the scaleform. |