feat(menu): number rows step by 1, and the Stick dead zone takes any percent #1294
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!1294
Loading…
Reference in a new issue
No description provided.
Delete branch "kendowashere/Longshot:feat/menu-fine-steps"
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?
Type: feat · Risk: low · Tested on: Windows 11, RTX 5070 Ti, DualSense · Needs: Linux, any GPU
TL;DR
The menu's number rows jumped in big steps (5, 10, 25 or 100), so exact values like 97% field of view couldn't be picked, and the Stick dead zone offered only six fixed choices. Now a tap moves a number row by 1 and holding the arrow speeds up to the old steps, and the Stick dead zone takes any percent from 0 to 50. Both were checked in the game on Windows with a DualSense and by game-free tests.
Breakdown
stick_dead_zone_percent.mainfails.Why
The Insert menu's number rows move in coarse steps: Field of view and Volume by 5, Sharpness and Mouse sensitivity by 10, Camera speed and Vibration strength by 25, HDR peak brightness by 100. A player who wants 97% field of view or 80% camera speed can't pick it. Players asked for steps of 1: issue #710 asks it for the Stick dead zone, which isn't even a number row but six fixed choices (Default (24%), 5%, 10%, 15%, 20%, 30%). This makes every number row take steps of 1, keeps a long scale quick to cross, and makes the Stick dead zone a number row of its own, any percent from 0 to 50.
What changed
A number row (a scale of more than two values whose step is above 1) moves by 1 for a tap of an arrow and for the first 1.5 s it is held, the repeat's slow part. Held longer, the repeat's fast part, it moves by the row's own step, to the next of its steps counted from the row's low end (52 → 55 → 60 on Volume), so HDR peak brightness's 400 to 4000 still takes seconds, not minutes. Rows of step 1 and two-value rows are unchanged. The rows' definitions are unchanged: their step stays the coarse one, so nothing that reads a row's step changes.
gpu/vk/vk_menu.cpp:row_next(r, dir, fast): the value one press away, beforeset_row's ends (which still stop or wrap as before).arrow_held_ns[5]: kept bymenu_tick's existing repeat (how long each arrow is held).arrow_fast(dir): whether that arrow is past 1.5 s.row_next.rumble_stepkeeps an options file's Vibration strength within 25 to 200 (main's range since the Vibration row) instead of rounding it to 25, so a value the arrows picked survives the next start.docs/user/graphics-and-controls.md: each number row's choices say "in steps of 1 (N while held)", and a line above the table says how the arrows step.tests/test_menu_fine_steps.py(new): see Testing.tests/test_rumble_menu.py: a tap moves 1, a long hold moves to the next 25, an options file's value is kept. Its stand-ins also gainframegen_by_dlss_offered, whichset_rowcalls since main's frame generation rows; without it the check failed to compile onmaintoo.tests/test_camera_speed.py: the guide row's new text.tests/test_menu_text_field.py:arrow_held_nsin its stand-ins.The Stick dead zone (Controls tab; second commit,
ba4c9159):stops_at_ends,is_slider).host/nn_hid.chos_filter_stick: the threshold is the percent of a full tilt,(zone * 32767 + 50) / 100; 24 (and anything out of range) stays XInput's own 7849, so the default is unchanged, and the old choices (5, 10, 15, 20, 30) land on the thresholds they had. The host's readers (nn_hid.c,host/pad_sdl.c) default to 24 when there is no menu.stick_dead_zone_percent. An older file'sstick_dead_zone=(the choice, 0 to 5) is read once and becomes its percent (stick_dead_zone_from_choice), andsave()drops the old line, so nobody's setting changes.gpu/vk/menu/controller.cpp: the row, a module since #1633: a Slider from 0 to 50 in steps of 1, saved asstick_dead_zone_percent;vk_menu.cppkeepsstick_dead_zone_from_choiceand the old line's reading inmenu_init.docs/user/graphics-and-controls.md: the row's choices and its paragraph.tests/test_stick_dead_zone.pycompiles the row's options code and checks the ini key, readingstick_dead_zone_percent(clamped to 0 to 50), each old choice becoming its percent, the new key winning over the old one, the row's texts and range, and that the host reads option 11 with 24 as its default.tests/test_stick_inversion_rest.pyrunshos_filter_stickwith the old choices' percents, which still cut at their old thresholds. Stand-ins intests/test_audio_output_menu.py,test_menu_keys.pyandtest_upscaler_round_trip.py.Measurements
Verdict: nothing to measure: a menu input change; the repeat keeps one more number per arrow.
Flags and settings
No new row, switch or build flag. The number rows' steps change as the player guide's table now says.
stick_dead_zone_percent)stick_dead_zone=, a choice)Testing
Tested:
Game-free:
tests/test_menu_fine_steps.py(new) cutsrow_nextand theRowstruct out ofvk_menu.cpp, compiles them with a C++ compiler and runs them: a tap moves 1; a long hold goes to the next step from the row's low end in either direction (Volume, Mouse sensitivity from 10, HDR peak brightness); a step-1 row and a two-value row are unchanged; the ends areset_row's.row_next, that the repeat keeps the hold's length, that the whole steps start at 1.5 s, that an options file's Vibration strength is no longer rounded, and that the guide's rows give their steps of 1. It fails with a tap moving the row's whole step (tried).python -I -B tests/run_all.pyon this branch (ba4c9159, both commits) onmain@4408ce0d: 631 passed, 40 failed, 112 skipped. A cleanmain@4408ce0don this PC: 630 passed, 40 failed, 112 skipped. The same 40 fail on both:test_auto_handheld,test_bug_report_defaults,test_cpu_report,test_crash_dialog,test_crt_options,test_damage_debug_menu,test_dev_packs,test_display_startup_failure,test_dlss_feature_size,test_failed_compile_keeps_objects,test_fastfp_fma,test_fpx_sticky,test_game_menu_mouse_buttons,test_guest_imported,test_hud_layout_row,test_invalidate_quick,test_invalidate_vcore,test_job_queue,test_libc_hooks,test_linux_preflight,test_linux_pressure,test_mirror_budget,test_missing_nup,test_pads_after_menu,test_pending_guest_import,test_pipeline_play_cache,test_portable_builder_home,test_portable_builder_startup,test_present_thread,test_profiling_mode,test_psychov35_fsr3_fg,test_readback_timeout_source,test_run_all_changed,test_sdiv_overflow,test_slow_frames,test_spawn_emit,test_switch_table,test_tested_configurations,test_upscaler_rows,test_walk_key.In the game: Windows 11 Pro, GeForce RTX 5070 Ti, a DualSense through SDL, a pack of this change on an earlier
main(6c9edffe), together with my other branches. Tapping Field of view and Volume moves them by 1, and holding speeds up to their old steps; it works as intended.In the game, the Stick dead zone (same PC and controller, a pack of both commits on
main@8e9cfc3a, together with my other branches): the row takes any percent from 0 to 50 and the stick's dead zone follows it; it works as intended.Not tested: a run of this exact commit on current
mainin the game (both commits were run on earliermains,6c9edffeand8e9cfc3a; the code they change is the same); Linux and Steam Deck (the host change inhost/nn_hid.candhost/pad_sdl.cis plain C both share).Must be tested:
stick_dead_zone=3(15%), expecting the row to show 15%.Risks
What could break: a row with a step above 1 whose values between steps mean nothing would now accept them. Every such row is a number (the twelve above), and their text functions print any value. An options file's Vibration strength is no longer rounded to 25: a hand-edited 60 stays 60 (the rumble is a percentage).
An options file from this PR read by an older build: its
stick_dead_zone=line is gone, so the older build shows Default (24%).Turning it off: revert the commits.
Compatibility: the options file gains
stick_dead_zone_percentin place ofstick_dead_zone; older files load as before, their dead zone choice carried over. No caches, no API change, nothing for the player's build to translate again.Issues
Fixes #710
Checklist
Everyone
type(scope): description) of the status line's type.can't be run by hand is in Testing's Not testable by hand, with why.
in Risks.
main.python -I -B tests/run_all.pypasses (any failure that also fails onmainis named).third_party/untouched (a new folder with aPROVENANCE.mdinstead).When it applies
Assisted-by:/Co-Authored-By:trailers.tests/that reads changed source updated in this PR, not weakened.gpu/vk/vk_menu.cpp,host/nn_hid.candhost/pad_sdl.cnot built for Linux here.)Tested in game: Windows 11 Pro, GeForce RTX 5070 Ti, a DualSense through SDL; a pack of this change (with my other branches) on main @
6c9edffe. Field of view and Volume move by 1 a tap and speed up to their old steps when held.Brought up to the ready-for-review standard (#1454): the checklist's Everyone list has two new boxes, added here from what this PR's description and comments show (please check they match what you know).
WIP: feat(menu): number rows step by 1, a long hold by their own stepsto WIP: feat(menu): number rows step by 1, and the Stick dead zone takes any percentbf885f8fa4ba4c9159f6@Beanstalk On Linux, any GPU: build this branch and start the game with default settings, expecting it to build, start and reach gameplay. This is a build check for the host and menu files; the menu's arrow steps and the Stick dead zone need no farm check.
@kendowashere only members of
BigBeanscan start the farm.One of them can approve this request by reacting 👍 to it or to this comment.This request was forba4c915, and the PR has changed since (0930b0b), so a 👍 no longer approves it. Comment@Beanstalkagain to ask for the new commit.mooki referenced this pull request2026-11-19 01:28:32 +00:00
WIP: feat(menu): number rows step by 1, and the Stick dead zone takes any percentto feat(menu): number rows step by 1, and the Stick dead zone takes any percentView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.