Skip to content

Commit

Permalink
Document 0xD1C7CB175E012964 (#972)
Browse files Browse the repository at this point in the history
* 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
freedy69 and 4mmonium authored Jan 4, 2024
1 parent cc7c030 commit e2ca8f9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
15 changes: 0 additions & 15 deletions GRAPHICS/N_0xd1c7cb175e012964.md

This file was deleted.

21 changes: 21 additions & 0 deletions GRAPHICS/PassKeyboardInputToScaleform.md
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.

0 comments on commit e2ca8f9

Please sign in to comment.