Skip to content

Commit

Permalink
rebirth add scroll debounce setting
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Sep 22, 2024
1 parent 36fbd48 commit 117b213
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Themes/Rebirth/BGAnimations/playerInfoFrame/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ local translations = {
StartGiveUpExplanation = THEME:GetString("Settings", "StartGiveUpExplanation"),
Debounce = THEME:GetString("Settings", "Debounce"),
DebounceExplanation = THEME:GetString("Settings", "DebounceExplanation"),
ScrollDebounce = THEME:GetString("Settings", "ScrollDebounce"),
ScrollDebounceExplanation = THEME:GetString("Settings", "ScrollDebounceExplanation"),
TestInput = THEME:GetString("Settings", "TestInput"),
TestInputExplanation = THEME:GetString("Settings", "TestInputExplanation"),
TestInputButton = THEME:GetString("Settings", "TestInputButton"),
Expand Down Expand Up @@ -6374,6 +6376,16 @@ local function rightFrame()
return notShit.round(PREFSMAN:GetPreference("InputDebounceTime"), 3) .. "s"
end,
},
{
Name = "Scroll Debounce Time",
DisplayName = translations["ScrollDebounce"],
Type = "SingleChoice",
Explanation = translations["ScrollDebounceExplanation"],
Directions = preferenceIncrementDecrementDirections("ScrollDebounceTime", 0, 0.2, 0.001),
ChoiceIndexGetter = function()
return notShit.round(PREFSMAN:GetPreference("ScrollDebounceTime"), 3) .. "s"
end,
},
{
Name = "Test Input",
DisplayName = translations["TestInput"],
Expand Down
2 changes: 2 additions & 0 deletions Themes/Rebirth/Languages/en.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,8 @@ ForceNoDoubleSetup=Force No Double-Setup
ForceNoDoubleSetupExplanation=In Gameplay, multiple bindings might be set for the keys. This locks you into the first setup per key you press.
Debounce=Input Debounce Time
DebounceExplanation=Set the amount of time required between each repeated input.
ScrollDebounce=Scroll Debounce Time
ScrollDebounceExplanation=Set the amount of time required between each consecutive mouse wheel scroll.
TestInput=Test Input
TestInputExplanation=Enter a screen to test all input devices.
TestInputButton=Test Input
Expand Down

0 comments on commit 117b213

Please sign in to comment.