diff options
| author | 2025-11-15 20:24:41 +0000 | |
|---|---|---|
| committer | 2025-11-15 20:24:41 +0000 | |
| commit | c15101df02685a5d26f4b130f7b559eb7ed7f74f (patch) | |
| tree | 5803259d20a291278c9cc7dfd6bc346198f0edb0 /src/rinput.c | |
| parent | 650bb761d3e5af3f8fa19ac8d22864cc0360d085 (diff) | |
| download | sst-c15101df02685a5d26f4b130f7b559eb7ed7f74f.tar.gz sst-c15101df02685a5d26f4b130f7b559eb7ed7f74f.zip | |
Deal with CON_HIDDEN not existing in OE
Pretty hacky for now, but not the worst thing in the world. Can always
be tidied up later.
Diffstat (limited to 'src/rinput.c')
| -rw-r--r-- | src/rinput.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rinput.c b/src/rinput.c index 1e957b0..554577c 100644 --- a/src/rinput.c +++ b/src/rinput.c @@ -61,10 +61,10 @@ static union { // space saving #define vtable_insys U.vtable_insys DEF_CVAR_UNREG(m_rawinput, "Use Raw Input for mouse input (SST reimplementation)", - 0, CON_ARCHIVE | CON_HIDDEN) + 0, CON_ARCHIVE | CON_INIT_HIDDEN) DEF_CVAR_MINMAX(sst_mouse_factor, "Number of hardware mouse counts per step", - 1, 1, 100, /*CON_ARCHIVE |*/ CON_HIDDEN) + 1, 1, 100, /*CON_ARCHIVE |*/ CON_INIT_HIDDEN) static ssize __stdcall inproc(void *wnd, uint msg, usize wp, ssize lp) { switch (msg) { @@ -205,8 +205,8 @@ INIT { hook_inline_commit(h1.prologue, (void *)&hook_GetCursorPos); hook_inline_commit(h2.prologue, (void *)&hook_SetCursorPos); -ok: m_rawinput->base.flags &= ~CON_HIDDEN; - sst_mouse_factor->base.flags &= ~CON_HIDDEN; +ok: con_unhide(&m_rawinput->base); + con_unhide(&sst_mouse_factor->base); return FEAT_OK; e1: DestroyWindow(inwin); |
