Basically, I want ContextActionService to bind scrolling the mouse wheel up to a function using BindAction.
As in:
ContextActionService:BindAction(name, function, false, Enum.blahblahblah.MouseWheelUp)
Basically, I want ContextActionService to bind scrolling the mouse wheel up to a function using BindAction.
As in:
ContextActionService:BindAction(name, function, false, Enum.blahblahblah.MouseWheelUp)
MouseWheel is the only Enum related to this behavior. There isn’t an “up”. You would need to check for the input using UserInputService and determine the direction of scroll by checking if the position is higher than 0.
I want to avoid using UserInputService since I am forking the Keyboard module thats under ControlModule and it wants to use ContextActionService. I also don’t want to add more piles of code.
If that’s the only solution I will mark yours as the solution and will try to implement it.
I don’t know any other possible way. You can take a look at the Camera modules and see how Roblox themselves decided to detect zooming in/out.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.