Triforce v0.9.0

Character tab, faster renderer defaults, HD rumble shipped, and the 11-30 bug pass: ending softlock below 60 fps, adult first-night lock, Intel Arc robust buffers, adult map, randomizer load order.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-30 20:55:14 -06:00
parent 8cb23131f9
commit 822ee913bc
86 changed files with 8128 additions and 438 deletions

View File

@@ -6,6 +6,8 @@ triforce_options.ini: the defaults (WASD, the arrows, the mouse's left button Y
only while the mouse is captured and only once the click that captured it was let go, key_move_up from the file, a
pad_ line for a keys-only control ignored, a key taken from the control that had it, and Enter with Alt still no key.
The walk key (the Insert menu's Walk key row, tests/test_walk_key.py) is no control's key while it is the walk key.
((Triforce, 11-30) A key some control has, or the walk key, is no sensitivity key (key_is_a_control, sens_key): - bound to A
took a fifth off the mouse's sensitivity at every press.
python -I -B tests/test_bound_keys.py (needs a C compiler)
"""
import shutil
@@ -191,6 +193,26 @@ int main(int argc, char **argv) {
CHECK(!hos_binding_is_default(HOS_SW_B) && !hos_reset_binding(HOS_SW_B) && !hos_reset_binding(HOS_SW_A)); /* (each has the other's) */
hos_bind(HOS_BIND_PAD, HOS_SW_A, 0, -1); /* (cleared: B's default is free) */
CHECK(hos_reset_binding(HOS_SW_B) && hos_reset_binding(HOS_SW_A) && hos_binding_is_default(HOS_SW_A) && hos_binding_is_default(HOS_SW_B));
/* ((Triforce, 11-30) the sensitivity keys (- and =, Num - and Num +) are no shortcut while a control has them, nor while
one is the walk key: bound to A, - took a fifth off the sensitivity at every press (mouse_sens_keys) */
release();
CHECK(key_is_a_control('E') && key_is_a_control(VK_TAB) && key_is_a_control(VK_LBUTTON)); /* (A's, Plus's, Y's) */
CHECK(!key_is_a_control(0xBD) && !key_is_a_control(0x6D) && !key_is_a_control(0xBB) && !key_is_a_control(0x6B));
CHECK(!key_is_a_control(0));
held[0xBD] = 1;
CHECK(sens_key(0xBD)); /* (no control's: the shortcut) */
hos_bind(HOS_BIND_KEY, HOS_SW_A, 1, 0xBD);
CHECK(key_is_a_control(0xBD) && !sens_key(0xBD) && bound_down(HOS_SW_A, 0)); /* (A's alone) */
hos_bind(HOS_BIND_KEY, HOS_SW_A, 1, 0);
CHECK(!key_is_a_control(0xBD) && sens_key(0xBD));
hos_bind(HOS_BIND_KEY, HOS_KEY_OC_NOTE_A, 0, 0x6D); /* (a note row's key, Num -) */
CHECK(key_is_a_control(0x6D));
hos_bind(HOS_BIND_KEY, HOS_KEY_OC_NOTE_A, 0, 0);
walk_vk = 0x6D;
CHECK(key_is_a_control(0x6D));
walk_vk = 0;
CHECK(!key_is_a_control(0x6D));
release();
if (!fails) printf("PASS\n");
return fails != 0;
}
@@ -207,6 +229,8 @@ class BoundKeysTests(unittest.TestCase):
between(hid, "static const char *const bind_names[HOS_KEY_N]", "\nvoid hos_bind("), # (its definition: the live input declares it)
block(hid, "static uint64_t bound_pad_buttons("),
between(hid, "static int mouse_vk_slot(", "static int bound_down("),
block(hid, "static int key_is_a_control(int vk) {"), # ((Triforce, 11-30) the sensitivity keys' rule
block(hid, "static int sens_key("),
between(hid, "int hos_binding_is_default(", "int hos_rebind_control(")] # ((Triforce) the per-control reset)
code = "\n".join(code).replace("GetModuleFileNameA(NULL,", "GetModuleFileNameA(0,")
read = block(hid, "static void read_input(")