Sha256: b5393a73b355da376730c951df7080b2f42a6cc3fad8bb4bff4fe322e8d80111
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
module GLFW ## # Describes the captured state of a gamepad. class GamepadState ## # Queries the value of the axis at the specified index. # # @param index [Integer] The desired index of the axis to query. # # @return [Float] The current axis value, or `0.0` if out of range. # @note It is recommended to use the return value rounded to a specific precision, or "dead zone", as many devices # will report miniscule values even when stationary. # @note Use the class constants prefixed with `AXIS` for strongly typed index values if desired. def axis(index) end ## # Queries the button state at the specified index. # # @param index [Integer] The desired index of the button to query. # # @return [Float] `true` if button is depressed, otherwise `false` if no input is detected or if index is out of range. # @note Use the class constants prefixed with `BUTTON` for strongly typed index values if desired. def button(index) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glfw-3.3.2.0 | lib/glfw/stubs/gamepad_state.rb |