Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Add support for keybindings#154

Merged
TheGlitch76 merged 9 commits intoPatchworkMC:masterfrom
snakefangox:feature/keybindings
Jul 30, 2020
Merged

Add support for keybindings#154
TheGlitch76 merged 9 commits intoPatchworkMC:masterfrom
snakefangox:feature/keybindings

Conversation

@snakefangox
Copy link
Contributor

This PR adds a new module to allow patchwork to support keybindings, this will prevent mods that use forge's special handling from crashing however it does not completely implement this special handling. The two additions in question are conflict handling and modifier key support. Because forge uses the default KeyBinding methods for this behavior this shouldn't cause any issues. I can make a follow up PR to add the complete API but these methods are not commonly used to begin with and I suspect this might be all that is needed. Additionally this method allows fabric mods that add these functions to support Patchwork mods.

I'm not sure about Patchwork naming conventions so better names are welcome.

This requires a Patcher PR, namely PatchworkMC/patchwork-patcher#67.

Copy link
Contributor

@cittyinthecloud cittyinthecloud left a comment

Choose a reason for hiding this comment

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

assets.patchwork-key-bindings should also be assets/patchwork-key-bindings, but overall LGTM

@snakefangox
Copy link
Contributor Author

Have added some of the functionality. Namely that forge allows you to categorize key binds so they only fire in certain situations and not respecting that may have some weird side effects like jetpack mods working with your inventory open. Don't think it's too big a deal but it's a tiny change, sorry if this is bad form.

Copy link
Contributor

@cittyinthecloud cittyinthecloud left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Glitch <glitchieproductionsofficial@gmail.com>
@TheGlitch76 TheGlitch76 dismissed Rongmario’s stale review July 29, 2020 23:54

"you can merge it, I only reviewed very minor stuff that was fixed early on"

@TheGlitch76 TheGlitch76 removed the request for review from Rongmario July 29, 2020 23:55
@TheGlitch76 TheGlitch76 merged commit 5cb31ac into PatchworkMC:master Jul 30, 2020
@snakefangox snakefangox deleted the feature/keybindings branch July 30, 2020 08:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants