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

.positionArray<Integer>

Get the current position of the mouse in desktop coordinate

Returns:

  • (Array<Integer>)


1478
1479
1480
# File 'LiteRGSS.rb.yard.rb', line 1478

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)


1473
1474
1475
# File 'LiteRGSS.rb.yard.rb', line 1473

def self.press?(button)

end

.set_position(x, y) ⇒ self

Set the position of the mouse in desktop coordinate

Returns:

  • (self)


1483
1484
1485
# File 'LiteRGSS.rb.yard.rb', line 1483

def self.set_position(x, y)

end