WIP: [pr-feature][input] Mouse and keyboard: hold keys have the mouse place a stick or trigger that stays #429
Loading…
Reference in a new issue
No description provided.
Delete branch "EmberReD/Darner:feat/held-sticks-from-mouse"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contributor role (optional)
What it changes
What this does:
bindings.ini:HoldLeftStick,HoldRightStick,HoldLT,HoldRT(gameinput::Hold). While one is down, the mouse moves that stick anywhere in its circle, or pulls that trigger part way (moving the mouse up pulls it), and the control stays where it was left until the key is let go. With two down, the mouse moves the one pressed last and the other keeps its place. 400 mouse counts move a control from rest to the rim.DARNER_MNK=1) the counts go to the held control and not to the camera hook (HOLDING, read intake_mouse_delta_at). With the stand-in mouse, the title's mouse does not move and does not jump afterwards.Z,C,1and3in the shippedbindings.ini, laid out by place like its other letters (W, C, 1, 3 on AZERTY), so the left hand holds them in a controller's order. An existingbindings.iniwithout these lines gets the missing ones added at launch (play::new_holds). A line is left out if the file already sets that hold or uses its key for something else. Nothing else in the file is changed.How it was tested
7c418aa(one commit on #364'se56ae682c6). The gates ran ond3433b0, the same files before the commit message was reworded. In the game: a build of the same files.a_hold_key_has_the_mouse_place_a_control_that_stays(both mouse paths);the_default_bindings_are_never_written_over_a_file_that_is_therenow also covers adding the hold lines.d3433b0(Windows 10 22H2): gate 1 and gate 2 clean. Gate 3 with--no-fail-fast: darner-hle 496 passed (15 ignored), darner 148 passed, darner-game and the other crates pass. Two crates fail here: darner-shader, 65 card and WARP cases with "no SM 6.6 device available" (it depends on no changed crate, the same as on #364), and darner-gpu, whose test process exits with code 3. This change touches darner-gpu only for the four F1 rows:cargo test -p darner-gpu --lib -- host::menu::passes 48 (2 ignored) withevery_view_fits_its_box_at_every_scaleandthe_link_is_always_right_under_the_noteskipped, and those two exit with code 3 on mainf3840d7too.bindings.ini, were checked by the tests only (the test player's file already had them).Checklist
main. It is one change, but based on #364's branch, which it needs (draft until #364 is merged).docs/asset-policy.md.Checked for overlap
bindings.ini, also changesgameinput.rsandmnk.rs); #302, #276, #216, #185, #399 (also changegameinput.rs, other parts).🤖 Generated with Claude Code
d3433b0472to7c418aa32bView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.