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
-
.position ⇒ Array<Integer>
Get the current position of the mouse in desktop coordinate.
-
.press?(button) ⇒ Boolean
Tell if a button of the mouse is pressed.
-
.set_position(x, y) ⇒ self
Set the position of the mouse in desktop coordinate.
Class Method Details
.position ⇒ Array<Integer>
Get the current position of the mouse in desktop coordinate
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
1473 1474 1475 |
# File 'LiteRGSS.rb.yard.rb', line 1473 def self.press?() end |
.set_position(x, y) ⇒ self
Set the position of the mouse in desktop coordinate
1483 1484 1485 |
# File 'LiteRGSS.rb.yard.rb', line 1483 def self.set_position(x, y) end |