Skip to content

Feature/gamepad fix: Gamepad analog button trigger fix (Issue #2611 Task 2)#3275

Open
ma-moon wants to merge 2 commits intoarmory3d:mainfrom
ma-moon:feature/gamepad-fix
Open

Feature/gamepad fix: Gamepad analog button trigger fix (Issue #2611 Task 2)#3275
ma-moon wants to merge 2 commits intoarmory3d:mainfrom
ma-moon:feature/gamepad-fix

Conversation

@ma-moon
Copy link
Copy Markdown

@ma-moon ma-moon commented Mar 12, 2026

Fixes the gamepad L2/R2 analog button trigger issue where the 'started' event was fired multiple times.
Changes:

  • Implemented state machine to detect 0.5 threshold crossing
  • Prevents multiple 'started' events for analog triggers
  • Virtual button mapping uses 0.2/0.8 thresholds
    Testing:
  • Tested with Xbox controller analog triggers
  • Verified single 'started' event per press
    Bounty Task 2 of Issue [$100 Bounty] Stochastic Screen-Space Reflections #2611

龙虾机器人 added 2 commits March 11, 2026 08:51
- 分析 Input.hx 中 Gamepad 类的潜在问题
- 识别 L2/R2 模拟按键多次触发 started 的 bug
- 提出阈值判断和状态机两种修复方案

待确认具体 issue 链接和用户报告的问题
问题:L2/R2 模拟按键在按压过程中会多次触发 started 事件

修复方案:
- 使用状态机检测 0.5 阈值跨越
- 只有状态改变时才触发 started/released
- 虚拟按键映射使用 0.2/0.8 阈值避免中间值问题

Refs: armory3d#2611
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant