Method: GLFW::Window#on_scroll

Defined in:
lib/glfw/stubs/window.rb

#on_scroll {|x, y| ... } ⇒ Proc? #on_scrollProc?

Returns the previous callback that was set, or nil if none existed.

Overloads:

  • #on_scroll {|x, y| ... } ⇒ Proc?

    When called with a block, sets a callback to be invoked when the mouse wheel is scrolled.

    Yield Parameters:

    • x (Float)

      The scroll amount on the x-axis, or 0.0 when not supported.

    • y (Float)

      The scroll amount on the y-axis.

  • #on_scrollProc?

    When called without a block, clears any callback that is set.

Returns:

  • (Proc?)

    the previous callback that was set, or nil if none existed.



538
539
# File 'lib/glfw/stubs/window.rb', line 538

def on_scroll
end