Method: RbSDL2::Mouse::RelativeMouse.update
- Defined in:
- lib/rb_sdl2/mouse/relative_mouse.rb
.update ⇒ Object
13 14 15 16 17 |
# File 'lib/rb_sdl2/mouse/relative_mouse.rb', line 13 def update self., self.x, self.y = ::SDL.GetRelativeMouseState(@_x, @_y), @_x.read_int, @_y.read_int self end |