Jump to content

[1.13+] How to execute right click from a controller joystick button


Recommended Posts

Posted

I've been trying to figure this out for a long time and it's been trivial. I have gotten it to place blocks, though actions such as bows or shields are basically spam clicked and block placement seems faster than it should be. Left click works basically perfectly (as of writing this)

My right click code is https://github.com/Fernthedev/controller-remap/blob/aa18ba99264d40fcf509f8907c5bc8b729fdce15/mod-core/src/main/java/com/github/fernthedev/controllerremapmod/core/ControllerHandler.java#L447-L474

Should I try to find a way to modify the useItemKeybind/attackKeybind values rather than mimic the actions instead?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.