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:



1476
1477
1478
# File 'LiteRGSS.rb.yard.rb', line 1476

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)


1471
1472
1473
# File 'LiteRGSS.rb.yard.rb', line 1471

def self.press?(button)

end

.set_position(x, y) ⇒ self

Set the position of the mouse in desktop coordinate

Returns:

  • (self)


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

def self.set_position(x, y)

end