diff options
| author | 2025-11-28 22:28:17 +0000 | |
|---|---|---|
| committer | 2025-11-28 22:30:55 +0000 | |
| commit | 3e057a6365ba6793531ba2930aa53453ee3f0d8e (patch) | |
| tree | 119256814db9acb54bfdf81f9ec8cc94dab05d45 /src/rinput.c | |
| parent | 8bed97cda76655c49fb80b604203ec572b2bf59e (diff) | |
| download | sst-3e057a6365ba6793531ba2930aa53453ee3f0d8e.tar.gz sst-3e057a6365ba6793531ba2930aa53453ee3f0d8e.zip | |
Fix sst_mouse_factor always being hidden
Kind of unpleasant and probably something to revisit at some point to
see if there's a more straightforward approach we can come up with.
Diffstat (limited to 'src/rinput.c')
| -rw-r--r-- | src/rinput.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rinput.c b/src/rinput.c index 554577c..a7ed1a4 100644 --- a/src/rinput.c +++ b/src/rinput.c @@ -205,8 +205,11 @@ INIT { hook_inline_commit(h1.prologue, (void *)&hook_GetCursorPos); hook_inline_commit(h2.prologue, (void *)&hook_SetCursorPos); -ok: con_unhide(&m_rawinput->base); - con_unhide(&sst_mouse_factor->base); +ok: // XXX: this is a little tricky and a little clunky. we have registered + // m_rawinput above but sst_mouse_factor will get auto-registered after init + // returns, so the flags are different. + con_unhide(&m_rawinput->base); + sst_mouse_factor->base.flags &= ~CON_INIT_HIDDEN; return FEAT_OK; e1: DestroyWindow(inwin); |
