Module: Sf::Joystick
- Defined in:
- LiteRGSS.rb.yard.rb
Overview
Joystick utility of SFML
Constant Summary collapse
- COUNT =
Number of joystick SFML is able to handle at once
8
- BUTTON_COUNT =
Number of key on a joystick SFML is able to handle at once
32
- AXIS_COUNT =
Number of axis SFML is able to handle on a joystick at once
8
- X =
X axis
sf::Joystick::Axis::X
- Y =
Y axis
sf::Joystick::Axis::Y
- Z =
Z axis
sf::Joystick::Axis::Z
- R =
R axis
sf::Joystick::Axis::R
- U =
U axis
sf::Joystick::Axis::U
- V =
V axis
sf::Joystick::Axis::V
- POV_X =
PovX axis
sf::Joystick::Axis::PovX
- POV_Y =
PovY axis
sf::Joystick::Axis::PovY
Class Method Summary collapse
-
.axis_available?(id, axis) ⇒ Boolean
Tell if the given axis is available on joystick id.
-
.axis_position(id, axis) ⇒ Float
Gives the axis position of joystick id.
-
.button_count(id) ⇒ Integer
Give the number of button on the joystick id.
-
.connected?(id) ⇒ Boolean
Tell if the joystick id is currently connected.
-
.identification(id) ⇒ Array
Gives the joystick identification information.
-
.press?(id, button) ⇒ Boolean
Tell if the button is pressed on joystick id.
-
.update ⇒ self
Update the state of joystick.
Class Method Details
.axis_available?(id, axis) ⇒ Boolean
Tell if the given axis is available on joystick id
1736 1737 1738 |
# File 'LiteRGSS.rb.yard.rb', line 1736 def self.axis_available?(id, axis) end |
.axis_position(id, axis) ⇒ Float
Gives the axis position of joystick id
1749 1750 1751 |
# File 'LiteRGSS.rb.yard.rb', line 1749 def self.axis_position(id, axis) end |
.button_count(id) ⇒ Integer
Give the number of button on the joystick id
1729 1730 1731 |
# File 'LiteRGSS.rb.yard.rb', line 1729 def self.(id) end |
.connected?(id) ⇒ Boolean
Tell if the joystick id is currently connected
1723 1724 1725 |
# File 'LiteRGSS.rb.yard.rb', line 1723 def self.connected?(id) end |
.identification(id) ⇒ Array
Gives the joystick identification information
1760 1761 1762 |
# File 'LiteRGSS.rb.yard.rb', line 1760 def self.identification(id) end |
.press?(id, button) ⇒ Boolean
Tell if the button is pressed on joystick id
1742 1743 1744 |
# File 'LiteRGSS.rb.yard.rb', line 1742 def self.press?(id, ) end |
.update ⇒ self
Update the state of joystick
1754 1755 1756 |
# File 'LiteRGSS.rb.yard.rb', line 1754 def self.update end |