class Rubygame::MouseMotionEvent
Indicates that the mouse cursor moved.
This event has these attributes:
- pos
-
the new position of the cursor, in the form [x,y].
- rel
-
the relative movement of the cursor since the last update, [x,y].
- buttons
-
the mouse buttons that were being held during the movement, an Array of zero or more of these constants in module Rubygame (or the corresponding button number):
- MOUSE_LEFT
-
1; left mouse button
- MOUSE_MIDDLE
-
2; middle mouse button
- MOUSE_RIGHT
-
3; right mouse button
Attributes
pos[RW]
rel[RW]
Public Class Methods
new(pos,rel,buttons)
click to toggle source
# File lib/rubygame/event.rb, line 256 def initialize(pos,rel,buttons) @pos, @rel, @buttons = pos, rel, buttons end