Skip to content

[codex] Add configurable stratagem direction keys#19

Merged
jslay88 merged 1 commit into
jslay88:mainfrom
DrakonWolfDev:codex/configurable-direction-keys
Jun 22, 2026
Merged

[codex] Add configurable stratagem direction keys#19
jslay88 merged 1 commit into
jslay88:mainfrom
DrakonWolfDev:codex/configurable-direction-keys

Conversation

@DrakonWolfDev

Copy link
Copy Markdown
Contributor

Summary

  • add a plugin-wide Direction Keys selector with Arrow keys and WASD keys options
  • translate abstract stratagem directions at execution time for both built-in and custom stratagem actions
  • keep Arrow keys as the default for backward compatibility with existing installations
  • extend the standalone stratagem validator to accept both Arrow and W/A/S/D input
  • document the new setting and add unit coverage for both layouts and fallback behavior

Motivation

The plugin currently requires Helldivers 2 directional stratagem inputs to be rebound to the arrow keys. Many keyboard players use the game's standard W/A/S/D directional bindings instead. Making the output layout selectable lets both configurations work without changing the generated stratagem sequences or duplicating action data.

Behavior

The new setting is available under Settings → Plugins → HELLDIVERS 2 → Settings:

  • Arrow keys (default): Up/Down/Left/Right emit KEY_UP, KEY_DOWN, KEY_LEFT, and KEY_RIGHT
  • WASD keys: Up/Down/Left/Right emit KEY_W, KEY_S, KEY_A, and KEY_D

Saved settings that are missing or contain an unknown layout safely fall back to Arrow keys. This preserves existing behavior after upgrading.

Validation

  • python -m unittest -v test_key_mapping.py — 4 tests passed
  • python -m py_compile main.py key_mapping.py test_key_mapping.py test_stratagems.py — passed
  • python -m update validate — passed with the repository's 8 existing extra-icon warnings

@DrakonWolfDev DrakonWolfDev marked this pull request as ready for review June 22, 2026 16:38
@jslay88 jslay88 merged commit d2e201e into jslay88:main Jun 22, 2026
@jslay88

jslay88 commented Jun 22, 2026

Copy link
Copy Markdown
Owner

This is now bundled into the v2.3.0 release (version bump in #20, merged to main).

I've opened a Store update PR to make it available for release: StreamController/StreamController-Store#203

Thanks for the contribution!

pull Bot pushed a commit to Zaclovespenguins/boatswain_helldivers_2 that referenced this pull request Jun 22, 2026
Bump plugin version to 2.3.0 for the new Direction Keys setting
(Arrow keys / WASD) added in jslay88#19.
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.

2 participants