-
-
Notifications
You must be signed in to change notification settings - Fork 138
[NeoForge 1.21.1] Controlify integration for controller support #2133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Yesssssman
merged 7 commits into
Epic-Fight:1.21.1
from
EchoEllet:feat/controlify-native-support
Oct 27, 2025
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d4ed6b7
feat(compat): Controlify mod integration
EchoEllet 7c512bc
fix: mixin injection to prevent swap item with offhand while attacking
EchoEllet 2e1a650
fix: force virtual mouse behavior for skill edit screen, and add nati…
EchoEllet e14efd8
chore: move a public helper to EpicFightInputActions
EchoEllet d59b72f
chore: fix minor incorrect description for dodge guide
EchoEllet be5e4ee
chore: add default input bind for show weapon innate skill tooltip
EchoEllet b9b5eeb
chore: load InputAction.ENUM_MANAGER in constructMod for addons (beha…
EchoEllet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
542 changes: 542 additions & 0 deletions
542
src/main/java/yesman/epicfight/compat/controlify/ControlifyCompat.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/yesman/epicfight/mixin/client/MixinClientCommonPacketListenerImpl.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| package yesman.epicfight.mixin.client; | ||
|
|
||
| import net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl; | ||
| import net.minecraft.network.protocol.Packet; | ||
| import net.minecraft.network.protocol.game.ServerboundPlayerActionPacket; | ||
| import org.spongepowered.asm.mixin.Mixin; | ||
| import org.spongepowered.asm.mixin.injection.At; | ||
| import org.spongepowered.asm.mixin.injection.Inject; | ||
| import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
| import yesman.epicfight.client.events.engine.ControlEngine; | ||
|
|
||
| @Mixin(ClientCommonPacketListenerImpl.class) | ||
| public class MixinClientCommonPacketListenerImpl { | ||
| @Inject( | ||
| method = "send(Lnet/minecraft/network/protocol/Packet;)V", | ||
| at = @At("HEAD"), | ||
| cancellable = true | ||
| ) | ||
| private void onBeforeSendPacket(Packet<?> packet, CallbackInfo ci) { | ||
| final boolean isSwapItemWithOffhand = packet instanceof ServerboundPlayerActionPacket actionPacket && | ||
| actionPacket.getAction() == ServerboundPlayerActionPacket.Action.SWAP_ITEM_WITH_OFFHAND; | ||
| if (isSwapItemWithOffhand && ControlEngine.shouldDisableSwapHandItems()) { | ||
| // Disables the swap offhand items while in action (e.g., attacking in Epic Fight mode). | ||
| ci.cancel(); | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...n/resources/META-INF/services/dev.isxander.controlify.api.entrypoint.ControlifyEntrypoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| yesman.epicfight.compat.controlify.ControlifyCompat |
22 changes: 22 additions & 0 deletions
22
src/main/resources/assets/controlify/controllers/default_bind/default.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "defaults": { | ||
| "epicfight:attack": { | ||
| "axis": "controlify:axis/right_trigger" | ||
| }, | ||
| "epicfight:weapon_innate_skill": { | ||
| "axis": "controlify:axis/right_trigger" | ||
| }, | ||
| "epicfight:mobility": { | ||
| "button": "controlify:button/south" | ||
| }, | ||
| "epicfight:guard": { | ||
| "axis": "controlify:axis/left_trigger" | ||
| }, | ||
| "epicfight:dodge": { | ||
| "button": "controlify:button/east" | ||
| }, | ||
| "epicfight:lock_on": { | ||
| "button": "controlify:button/left_stick" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.