Module: Sf::Mouse

Defined in:
LiteRGSS.rb.yard.rb

Overview

Mouse utility of SFML

Constant Summary collapse

LEFT =

Left button code

Left = sf::Mouse::Button::Left
RIGHT =

Right button code

Right = sf::Mouse::Button::Right
Middle =

Middle button code

sf::Mouse::Button::Middle
XButton1 =

XButton1 button code

sf::Mouse::Button::XButton1
XButton2 =

XButton2 button code

sf::Mouse::Button::XButton2
VerticalWheel =

Vertical wheel id

sf::Mouse::Wheel::VerticalWheel
HorizontalWheel =

Horizontal wheel id

sf::Mouse::Wheel::HorizontalWheel

Class Method Summary collapse

Class Method Details

.position ⇒ Array<Integer>

Get the current position of the mouse in desktop coordinate

Returns:

  • (Array<Integer>)


1485
1486
1487
# File 'LiteRGSS.rb.yard.rb', line 1485

def self.position

end

.press?(button) ⇒ Boolean

Tell if a button of the mouse is pressed

Parameters:

  • button (Integer) —

    code of the button

Returns:

  • (Boolean)


1480
1481
1482
# File 'LiteRGSS.rb.yard.rb', line 1480

def self.press?(button)

end

.set_position(x, y) ⇒ self

Set the position of the mouse in desktop coordinate

Returns:

  • (self)


1490
1491
1492
# File 'LiteRGSS.rb.yard.rb', line 1490

def self.set_position(x, y)

end