Skip to content

Backport Key Combos#8

Merged
Caedis merged 6 commits intomasterfrom
caedis/combos
Feb 21, 2026
Merged

Backport Key Combos#8
Caedis merged 6 commits intomasterfrom
caedis/combos

Conversation

@Caedis
Copy link
Copy Markdown
Member

@Caedis Caedis commented Feb 20, 2026

Will need to add a mod exclusion to https://github.com/GTNewHorizons/Hodgepodge/blob/master/src/main/java/com/mitchej123/hodgepodge/mixins/Mixins.java#L477-L483 (no need to)

added api for other mods to call to set a default modifier for a keybind

tested with gtnhlib's synckeybind via GT's wrench mode on client and server
Note: combos do NOT work inside of guis

api transparency: created with the help of codex

added api for other mods to call to set a default modifier for a kb
@Caedis Caedis requested a review from a team February 20, 2026 20:44
@Caedis Caedis added the enhancement New feature or request label Feb 20, 2026
@github-actions
Copy link
Copy Markdown

#9

github-actions Bot and others added 2 commits February 20, 2026 14:49
@lc-1337
Copy link
Copy Markdown

lc-1337 commented Feb 20, 2026

is this works with gtnhlib keybind sync thing?

@Caedis Caedis marked this pull request as draft February 20, 2026 21:30
@Caedis
Copy link
Copy Markdown
Member Author

Caedis commented Feb 20, 2026

@lc-1337 as long as the synced keybind was created with createFromMC or createConfigurable it should work since those are backed by real keybindings. The other way (create with just a keycode) will not since it bypasses what Controlling is doing and just calls Keyboard.isDown directly.

@lc-1337
Copy link
Copy Markdown

lc-1337 commented Feb 20, 2026

damn GTNewHorizons/GTNHLib#237

@Caedis Caedis marked this pull request as ready for review February 21, 2026 04:34
@Caedis Caedis enabled auto-merge (squash) February 21, 2026 17:03
Copy link
Copy Markdown

@mitchej123 mitchej123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine - have you tested on lwjgl2 and 3?

@Caedis Caedis merged commit 8a71765 into master Feb 21, 2026
1 of 2 checks passed
@Caedis Caedis deleted the caedis/combos branch February 21, 2026 19:30
@RuiXuqi
Copy link
Copy Markdown

RuiXuqi commented Feb 22, 2026

Actually there have been a mod you have noticed, which backports modern key combo system, and it crashes with GTNH Controlling after this PR. Can we maintain compatibility with it, or replace it with full API support, in order not to break existing mods' compatibility?

@Caedis
Copy link
Copy Markdown
Member Author

Caedis commented Feb 22, 2026

Actually there have been a mod you have noticed, which backports modern key combo system, and it crashes with GTNH Controlling after this PR. Can we maintain compatibility with it, or replace it with full API support, in order not to break existing mods' compatibility?

No. This change replaces that mod on every level. Plus that mod is ARR.
There is no reason to have that mod with this change

@RuiXuqi
Copy link
Copy Markdown

RuiXuqi commented Feb 22, 2026

Actually there have been a mod you have noticed, which backports modern key combo system, and it crashes with GTNH Controlling after this PR. Can we maintain compatibility with it, or replace it with full API support, in order not to break existing mods' compatibility?

No. This change replaces that mod on every level. Plus that mod is ARR. There is no reason to have that mod with this change

Yea I know Controlling replaces that mod, so I suggest to implement its existing API too, making mods using MKB API can work with Controlling. Sorry my words seemed to lead to confusion.

btw the mod is licensed AGPL(GNU AFFERO GENERAL PUBLIC LICENSE) on CF and the main branch. Their devs just forget to mark it on 1.7.10 branch.

@Caedis
Copy link
Copy Markdown
Member Author

Caedis commented Feb 22, 2026

That is not how licensing works

@RuiXuqi
Copy link
Copy Markdown

RuiXuqi commented Feb 22, 2026

That is not how licensing works

OK got it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants