Method: RbSDL2::Mouse::RelativeMouse.update

Defined in:
lib/rb_sdl2/mouse/relative_mouse.rb

.updateObject



13
14
15
16
17
# File 'lib/rb_sdl2/mouse/relative_mouse.rb', line 13

def update
  self.button, self.x, self.y =
    ::SDL.GetRelativeMouseState(@_x, @_y), @_x.read_int, @_y.read_int
  self
end