|
Button1 and Button2 already exist (for the left mouse and right mouse button, respectively), and I thought it would make sense for scripts to detect when the mouse wheel button was fired.
And for those of you saying "What about those without a mouse?", scripts already can detect when the mouse wheel is scrolled up/down.
(And if this is already a feature, I apologize, I simply can't find it on the wiki anywhere). |
|
|
It's not a feature already, but the mouse wheel is locked sadly q-q. |
|
|
Yeah, I kind of need it to exist so my game doesn't require a third hand, like the N64. |
|
|
"It's not a feature already, but the mouse wheel is locked sadly q-q."
What do you mean by "locked"?
Halt, Tropfen und explodieren. |
|
1owlJoin Date: 2015-04-03 Post Count: 420 |
Define locked?
-Follow me on Twitter @1owlRBLX |
|
|
We can't have scripts read it.
For example, when you click your Left Mouse Button, we can make it shoot a gun. But when you click your Mouse Wheel Button, we can't do anything about it.
Basically in the ROBLOX world, it doesn't exist. |
|
|
Oh wait nvm it used to tell me I couldn't use it on the wiki |
|
|
|
|
|
I would use this. It'd be good for building games if you want to have a "pick block" key like in Minecraft of any other game that involves building with an inventory. |
|
|
Thanks for the support/Bump... |
|
|
@texastyaust: You can detect it with UserInputService.InputChanged -- the Z value of inputObject.Position will be the amount scrolled.
@OP: They're considering this but it hasn't gotten much traction on ROBLOX's Trello page
https://trello.com/c/GpivtKDC/36-allow-mousebutton3-to-fire-events-m
If it gets more votes then maybe it'll be a priority, but it isn't right now. Would be really useful because I wanted to make a dual-wielding weapon system where clicking and dragging the LMB swung the primary weapon and RMB swung the secondary and holding down the middle mouse button would switch from combat mode to view mode where you could look around. |
|