Jump to content

Recommended Posts

Posted

Hi, looking through the available functions and such, back in 1.12 there was a Mouse class that provided lots of functionality for interacting with the mouse cursor. Right now, it looks like they've taken that class out and now we have MouseHelper and KeyboardListener. Is there any replacement methods or objects for the old Mouse functionality (such as setCursorPosition() or clickMouse())? I have a call right now for clickmouse, it goes 

mc.keyboardListener.onKeyEvent(mc.mainWindow.getHandle(), org.lwjgl.glfw.GLFW.GLFW_MOUSE_BUTTON_1, -1, org.lwjgl.glfw.GLFW.GLFW_PRESS , 0);

however this seems *very* verbose for simply a clickMouse call (and I have not even verified if it works yet). Right now, I'm looking for a replacement for setCursorPosition specifically. If there are no setters for this, would a Reflection into MouseHelper's private variables do the same effect, or does it not work like that? (I am not even sure if I can do a Reflection into MouseHelper yet). And if this functionality is not implemented, would doing a pull request with a simple setter in MouseHelper be sufficient?

 

Thanks a bunch for any answers!

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.