diff options
| author | Дмитрий Корлодный <deusex1998@gmail.com> | 2026-11-28 13:59:13 +0000 |
|---|---|---|
| committer | Дмитрий Корлодный <deusex1998@gmail.com> | 2026-11-28 13:59:13 +0000 |
| commit | ab95ff8427caa30a5f87d85af097580d7e7d086f (patch) | |
| tree | d4625cfe634303abfa7f555c24c95f5274ba71db /docs/gameinput.md | |
| parent | 7ffcb8e260d3cedfb0077d924b0be189293c5a2c (diff) | |
| parent | 9c49bd5332327e689c5c957786c31b10efb3f32b (diff) | |
Merge upstream main into PR #1528
Diffstat (limited to 'docs/gameinput.md')
| -rw-r--r-- | docs/gameinput.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md index cd151d28e..04e9c6687 100644 --- a/docs/gameinput.md +++ b/docs/gameinput.md | |||
| @@ -166,7 +166,9 @@ sensor, about a pixel at Windows' default pointer speed without acceleration, so | |||
| 166 | 166 | ||
| 167 | With raw input on and a window of this process in the foreground, the cursor is kept inside that window's client | 167 | With raw input on and a window of this process in the foreground, the cursor is kept inside that window's client |
| 168 | area (`ClipCursor`, re-applied every 100 ms) so that a click cannot land on another window; it is released when focus | 168 | area (`ClipCursor`, re-applied every 100 ms) so that a click cannot land on another window; it is released when focus |
| 169 | moves away or the keyboard pad is turned off. The cursor stays visible: hiding it has to happen on the thread that | 169 | moves away or the keyboard pad is turned off. It is also released while the window is moved or sized, while a |
| 170 | menu loop runs, and while a mouse press that began outside the client area (on the title bar or a border) is held, so | ||
| 171 | the window can still be dragged; it comes back once the button is released. The cursor stays visible: hiding it has to happen on the thread that | ||
| 170 | owns the game's window, which is the title's, not the shim's. | 172 | owns the game's window, which is the title's, not the shim's. |
| 171 | 173 | ||
| 172 | Keys are read with `GetAsyncKeyState`, which needs no window or message loop (SDL's keyboard is part of its video | 174 | Keys are read with `GetAsyncKeyState`, which needs no window or message loop (SDL's keyboard is part of its video |