Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.14.3] MouseScrollEvent Without a GUI


Ommina
 Share

Recommended Posts

I would like to respond to the mouse wheel being scrolled (with a modifier to avoid interrupting scrolling between items on the hotbar).  But I'm struggling to find an event that works.

 

InputEvent.MouseInputEvent has 'button', 'action', and 'mods', but nothing for scrolling.

 

There is a GuiScreenEvent.MouseScrollEvent, but this only fires when a GUI is open (logically enough).  I'm only interested in the event when a GUI is not open.

 

In 1.12.2 there is a MouseEvent, but this is now missing -- presumably replaced with the InputEvent above.

 

Am I merely missing seeing its replacement?  If not, is there some other means of responding to the mouse scroll wheel?  Thanks!

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.