<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mike/sst/src/rinput.c, branch v0.18-BETA</title>
<subtitle>Source Speedrun Tools: practice tools and handy features for Source Engine games</subtitle>
<id>https://qdb.woz.blue/mike/sst/atom?h=v0.18-BETA</id>
<link rel='self' href='https://qdb.woz.blue/mike/sst/atom?h=v0.18-BETA'/>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/'/>
<updated>2026-02-16T19:11:24+00:00</updated>
<entry>
<title>Move to static trampolines and type-safe hooks</title>
<updated>2026-02-16T19:11:24+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2025-12-26T23:12:11+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=af370088fc178996a46ee508aaa1a2c46318bbf2'/>
<id>urn:sha1:af370088fc178996a46ee508aaa1a2c46318bbf2</id>
<content type='text'>
For some reason the DLL got a tiny little bit bigger again but that's
fine. This will make orig_ calls more efficient in the inline case, and
also make it harder to screw up and hook the wrong thing by mistake.

Self-explanatory-ish, apart from the fact it's a fairly large API change
of course. And it relies on some more bonkers assembler directive
hackery.

But it works!

The only complaint one might have is that the featsetup functions no
longer take an explicit string which occasionally yields slightly less
perfect error messages, but I've decided this isn't really a problem and
makes the API nicer to use. It's a tradeoff, innit.
</content>
</entry>
<entry>
<title>Fix sst_mouse_factor always being hidden</title>
<updated>2025-11-28T22:30:55+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2025-11-28T22:28:17+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=3e057a6365ba6793531ba2930aa53453ee3f0d8e'/>
<id>urn:sha1:3e057a6365ba6793531ba2930aa53453ee3f0d8e</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Deal with CON_HIDDEN not existing in OE</title>
<updated>2025-11-15T20:24:41+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2025-11-15T20:24:41+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=c15101df02685a5d26f4b130f7b559eb7ed7f74f'/>
<id>urn:sha1:c15101df02685a5d26f4b130f7b559eb7ed7f74f</id>
<content type='text'>
Pretty hacky for now, but not the worst thing in the world. Can always
be tidied up later.
</content>
</entry>
<entry>
<title>Fix bad returns missed in the feature init rewrite</title>
<updated>2025-06-01T19:29:46+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2025-06-01T19:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=a5372622f33f44ac83f28bc09ff8b79cb2676ef5'/>
<id>urn:sha1:a5372622f33f44ac83f28bc09ff8b79cb2676ef5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rework API for inline hooking</title>
<updated>2025-04-16T20:31:20+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2025-04-16T01:13:01+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=4fddfa831d2a33ab3eee7ceb5f181c82d5aa78d2'/>
<id>urn:sha1:4fddfa831d2a33ab3eee7ceb5f181c82d5aa78d2</id>
<content type='text'>
This both simplifies and complicates things, but probably hopefully
maybe simplifies things overall. Certainly in cases like the L4D1 demo
thing where there's 3 inline hooks at once, it seems simpler to be able
to batch the fallible stuff to avoid rollbacks. In cases where you only
need one hook, it's a bit more verbose, but what can you do.

Thanks bill for discussing this with me pretty exhaustively and giving a
lot of good input.

I think both of us still kind of hate it actually.
</content>
</entry>
<entry>
<title>Remove years from copyright headers</title>
<updated>2025-04-07T20:31:32+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2025-04-07T20:31:32+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=58b495650f7613cdebfe78fff9de2b99556f1998'/>
<id>urn:sha1:58b495650f7613cdebfe78fff9de2b99556f1998</id>
<content type='text'>
They're legally unnecessary as far as I know, and kind of annoying to
maintain on a long-term basis.

This was done with the consent of all 3 other contributors, in case
anyone was wondering.
</content>
</entry>
<entry>
<title>Rewrite and redesign codegen and feature system</title>
<updated>2025-04-06T15:41:13+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2025-03-10T02:37:19+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=244fea664121acf12871ab5858a5fe95a2606b52'/>
<id>urn:sha1:244fea664121acf12871ab5858a5fe95a2606b52</id>
<content type='text'>
Also switch to somewhat proper C23 flags while we're at it.

This is a huge change. It took me forever, in between being really busy.
Sorry about that. But the good news is I'm now free to start integrating
the various patches that have accumulated since last release. Well, at
least in between still being really busy. Gotta manage expectations.

The main benefit of introducing GAMESPECIFIC() is that features
that don't apply to a particular game no longer show up *at all*, and
less time is wasted on init. It also enables a cool optimisation wherein
unnecessary REQUIRE_GAMEDATA() checks can elided at compile time
whenever the gamedata is known up-front to always exist in supported
games.

The DEF_FEAT_CVAR macro family meanwhile makes it easier to manage the
lifecycle of cvars/ccmds, with less manual registering, unhiding and
such.

Originally I was going to try and just hack these features into the
existing codegen abomination, but it just got too terrible. This rewrite
should make it easier to continue tweaking codegen behaviour in future.
It also has slightly better error messages.
</content>
</entry>
<entry>
<title>Fix crash on exit when our raw input is used</title>
<updated>2024-09-28T20:48:58+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2024-09-28T20:48:58+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=b15d2c56f05001bff0f7d3b9456dcf8053f73759'/>
<id>urn:sha1:b15d2c56f05001bff0f7d3b9456dcf8053f73759</id>
<content type='text'>
Turns out window messages still get generated after the plugin is
unloaded, causing now-unloaded SST code to get called.

In some edge cases some Windows appCompat logic will also then start
suppressing FreeLibrary calls for that game, which breaks plugin hot
reloading. Very dumb and very confusing.

I didn't notice the crashing before due to lack of minidumps from the
relevant games, so thanks aciidz for pointing this issue out.
</content>
</entry>
<entry>
<title>Increase mouse factor limit to 100</title>
<updated>2024-09-15T15:37:49+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2024-09-15T15:37:49+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=05cb6abe4ffaa6928190073f86423b3c0b03b4fd'/>
<id>urn:sha1:05cb6abe4ffaa6928190073f86423b3c0b03b4fd</id>
<content type='text'>
Requested repeatedly by Portal people, and I don't see why not. We were
conservative at first but I've yet to come up with a real reason why
slowing mouse input further would be a problem.
</content>
</entry>
<entry>
<title>Revise syntax macros and add a ton of branch hints</title>
<updated>2024-08-23T19:37:37+00:00</updated>
<author>
<name>Michael Smith</name>
<email>mikesmiffy128@gmail.com</email>
</author>
<published>2024-08-03T22:40:31+00:00</published>
<link rel='alternate' type='text/html' href='https://qdb.woz.blue/mike/sst/commit/?id=83da606072ce272eb053d4e1497d77e647cfecae'/>
<id>urn:sha1:83da606072ce272eb053d4e1497d77e647cfecae</id>
<content type='text'>
My new programming style is branch hints. All non-confusing branches
must be hinted when I can be bothered. It's faster, sometimes, maybe.

Also, start trying to use more signed sizes in at least some of the
places where it makes sense. Unsigned sizes are surprisingly
error-prone!
</content>
</entry>
</feed>
