Skip to content

Commit

Permalink
Use enum in UpdateOnscreenKeyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
freedy69 authored Aug 3, 2024
1 parent 77485e0 commit 9113248
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions MISC/UpdateOnscreenKeyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ int UPDATE_ONSCREEN_KEYBOARD();

Returns the current state of the text input box.

| Name | Value |
| ---- | ----- |
| Invalid | -1 |
| Editing | 0 |
| Confirmed | 1 |
| Canceled | 2 |
| Failed | 3 |
```
enum OSK_STATUS
{
OSK_INVALID = -1,
OSK_PENDING = 0,
OSK_SUCCESS = 1,
OSK_CANCELLED = 2,
OSK_FAILED = 3
};
```

## Return value
Returns a value from the list above.

0 comments on commit 9113248

Please sign in to comment.