WheelForward (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
No edit summary
>Legend26
No edit summary
Line 1: Line 1:
<onlyinclude>{{Event
<onlyinclude>{{Event
|name = WheelForward
|name = WheelForward
|description = Fired when the mouse wheel is moved forward.
|description = Fired when the mouse wheel is moved forward. This event never fires because the mouse wheel is used for zooming.  
|object = Mouse
|object = Mouse
}}</onlyinclude>
}}</onlyinclude>

Revision as of 06:50, 28 January 2012

WheelForward ( )
Description Fired when the mouse wheel is moved forward. This event never fires because the mouse wheel is used for zooming.
Member of: Mouse


Example
local tool = Instance.new("Tool")
tool.Parent = game.Players.Player.Backpack
local function onActivation(mouse)
  mouse.WheelForward:connect(function()
    print("Wheel moved forward")
  end)
end
tool.Activated:connect(onActivation)