Sign in to follow this  

How to scroll mouse wheel?

Recommended Posts


So i assume you scroll wheel like this:


But i am not sure what to put inside (). IntelliJ suggests (Component arg0, Component arg1, Component arg2..) boolean.

I tried putting different numbers but it dont accept. I also put true, false, down, up 😄 idk what i am doing. Would appreciate some example.

Share this post

Link to post

3 hours ago, Nom said:

Thank you for answer but ... those are some complicated examples ... cant understand anything... I so what i assume you need to put some kind of widgets as parametres? Cant just put some random integers?



Edited by Vil4ntel

Share this post

Link to post

is used to scroll the mouse wheel until a particular Component is in the viewport - think like the bank interface when you have a bunch of items.

If the item you want to withdraw is at the bottom, you need to scroll until you can see it.


If you just want to scroll the mouse outside of the context of Components, then use

ctx.input.scroll(boolean down)


Share this post

Link to post

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Sign in to follow this