Module: Hate::Input::Mouse

Defined in:
lib/hate/input.rb

Class Method Summary collapse

Class Method Details

.motion(x, y, xr, yr, state) ⇒ Object



29
30
31
# File 'lib/hate/input.rb', line 29

def self.motion(x, y, xr, yr, state)
  Hate::Core::Callbacks.mousemotion(x, y, xr, yr, state)
end

.pressed(x, y, button) ⇒ Object



21
22
23
# File 'lib/hate/input.rb', line 21

def self.pressed(x, y, button)
  Hate::Core::Callbacks.mousepressed(x, y, button)
end

.released(x, y, button) ⇒ Object



25
26
27
# File 'lib/hate/input.rb', line 25

def self.released(x, y, button)
  Hate::Core::Callbacks.mousereleased(x, y, button)
end