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
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
1471 1472 1473 |
# File 'LiteRGSS.rb.yard.rb', line 1471 def self.press?() end |
.set_position(x, y) ⇒ self
Set the position of the mouse in desktop coordinate
1481 1482 1483 |
# File 'LiteRGSS.rb.yard.rb', line 1481 def self.set_position(x, y) end |