Jump to content

DisBeGee

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by DisBeGee

  1. 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!
×
×
  • Create New...

Important Information

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