class

Godot::Input

Inherits Godot::Object < Reference < Object

Godot Input singleton (Input).

Constructors

instance
Source
new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Class methods

action_just_pressed?(action : String, exact_match : Bool = false) : Bool
Source
action_just_released?(action : String, exact_match : Bool = false) : Bool
Source
action_pressed?(action : String, exact_match : Bool = false) : Bool
Source
axis(negative_action : String, positive_action : String) : Float32
Source
get_vector(negative_x : String, positive_x : String, negative_y : String, positive_y : String, deadzone : Float64 = -1.0) : Vector2
Source
is_action_just_pressed(action : String, exact_match : Bool = false) : Bool
Source
is_action_just_released(action : String, exact_match : Bool = false) : Bool
Source
is_action_pressed(action : String, exact_match : Bool = false) : Bool
Source
is_key_pressed(key : Key | Int32 | Int64) : Bool
Source
is_mouse_button_pressed(button : MouseButton | Int32 | Int64) : Bool
Source
is_physical_key_pressed(key : Key | Int32 | Int64) : Bool
Source
mouse_button_pressed?(button : MouseButton | Int32 | Int64) : Bool
Source
singleton_ptr
Source
use_accumulated_input
Source
use_accumulated_input=(enable : Bool) : Void
Source

Instance methods

action_just_pressed?(action : String, exact_match : Bool = false) : Bool
Source
action_just_released?(action : String, exact_match : Bool = false) : Bool
Source
action_press(action : String, strength : Float64) : Void
Source
action_pressed?(action : String, exact_match : Bool = false) : Bool
Source
action_release(action : String) : Void
Source
add_joy_mapping(mapping : String, update_existing : Bool) : Void
Source
axis(negative_action : String, positive_action : String) : Float32
Source
clear_joy_motion_sensors_calibration(device : Int64) : Void
Source
emulate_mouse_from_touch

Property emulate_mouse_from_touch getter

Source
emulate_mouse_from_touch=(val)

Property emulate_mouse_from_touch setter

Source
emulate_mouse_from_touch?
Source
emulate_touch_from_mouse

Property emulate_touch_from_mouse getter

Source
emulate_touch_from_mouse=(val)

Property emulate_touch_from_mouse setter

Source
emulate_touch_from_mouse?
Source
flush_buffered_events
Source
get_accelerometer
Source
get_action_raw_strength(action : String, exact_match : Bool) : Float64
Source
get_action_strength(action : String, exact_match : Bool) : Float64
Source
get_axis(negative_action : String, positive_action : String) : Float64
Source
get_connected_joypads
Source
get_current_cursor_shape
Source
get_device_orientation
Source
get_gravity
Source
get_gyroscope
Source
get_joy_accelerometer(device : Int64) : Vector3
Source
get_joy_axis(device : Int64, axis : Int64) : Float64
Source
get_joy_gravity(device : Int64) : Vector3
Source
get_joy_guid(device : Int64) : String
Source
get_joy_gyroscope(device : Int64) : Vector3
Source
get_joy_info(device : Int64) : Pointer(Void)
Source
get_joy_motion_sensors_calibration(device : Int64) : Pointer(Void)
Source
get_joy_motion_sensors_rate(device : Int64) : Float64
Source
get_joy_name(device : Int64) : String
Source
get_joy_num_touchpads(device : Int64) : Int64
Source
get_joy_touchpad_finger_position(device : Int64, finger : Int64, touchpad : Int64) : Vector2
Source
get_joy_touchpad_finger_pressure(device : Int64, finger : Int64, touchpad : Int64) : Float64
Source
get_joy_touchpad_fingers(device : Int64, touchpad : Int64) : Pointer(Void)
Source
get_joy_vibration_duration(device : Int64) : Float64
Source
get_joy_vibration_remaining_duration(device : Int64) : Float64
Source
get_joy_vibration_strength(device : Int64) : Vector2
Source
get_last_mouse_screen_velocity
Source
get_last_mouse_velocity
Source
get_magnetometer
Source
get_mouse_button_mask
Source
get_mouse_mode
Source
get_vector(negative_x : String, positive_x : String, negative_y : String, positive_y : String, deadzone : Float64 = -1.0) : Vector2
Source
has_joy_light(device : Int64) : Bool
Source
has_joy_motion_sensors(device : Int64) : Bool
Source
has_joy_vibration(device : Int64) : Bool
Source
ignore_joypad_on_unfocused_application

Property ignore_joypad_on_unfocused_application getter

Source
ignore_joypad_on_unfocused_application=(val)

Property ignore_joypad_on_unfocused_application setter

Source
ignore_joypad_on_unfocused_application?
Source
is_action_just_pressed(action : String, exact_match : Bool) : Bool
Source
is_action_just_pressed_by_event(action : String, event : InputEvent, exact_match : Bool) : Bool
Source
is_action_just_released(action : String, exact_match : Bool) : Bool
Source
is_action_just_released_by_event(action : String, event : InputEvent, exact_match : Bool) : Bool
Source
is_action_pressed(action : String, exact_match : Bool) : Bool
Source
is_anything_pressed
Source
is_emulating_mouse_from_touch
Source
is_emulating_touch_from_mouse
Source
is_ignoring_joypad_on_unfocused_application
Source
is_joy_button_pressed(device : Int64, button : Int64) : Bool
Source
is_joy_known(device : Int64) : Bool
Source
is_joy_motion_sensors_auto_calibration_enabled(device : Int64) : Bool
Source
is_joy_motion_sensors_calibrated(device : Int64) : Bool
Source
is_joy_motion_sensors_calibrating(device : Int64) : Bool
Source
is_joy_motion_sensors_enabled(device : Int64) : Bool
Source
is_joy_vibrating(device : Int64) : Bool
Source
is_key_label_pressed(keycode : Int64) : Bool
Source
is_key_pressed(keycode : Int64) : Bool
Source
is_mouse_button_pressed(button : Int64) : Bool
Source
is_mouse_button_pressed(button : MouseButton | Int32 | Int64) : Bool
Source
is_physical_key_pressed(keycode : Int64) : Bool
Source
is_using_accumulated_input
Source
mouse_button_pressed?(button : MouseButton | Int32 | Int64) : Bool
Source
mouse_mode

Property mouse_mode getter

Source
mouse_mode=(val : Int)

Property mouse_mode setter

Source
parse_input_event(event : InputEvent) : Void
Source
remove_joy_mapping(guid : String) : Void
Source
set_accelerometer(value : Vector3) : Void
Source
set_custom_mouse_cursor(image : Resource, shape : Int64, hotspot : Vector2) : Void
Source
set_default_cursor_shape(shape : Int64) : Void
Source
set_device_orientation(value : Quaternion) : Void
Source
set_emulate_mouse_from_touch(enable : Bool) : Void
Source
set_emulate_touch_from_mouse(enable : Bool) : Void
Source
set_gravity(value : Vector3) : Void
Source
set_gyroscope(value : Vector3) : Void
Source
set_ignore_joypad_on_unfocused_application(enable : Bool) : Void
Source
set_joy_light(device : Int64, color : Color) : Void
Source
set_joy_motion_sensors_auto_calibration_enabled(device : Int64, enable : Bool) : Void
Source
set_joy_motion_sensors_calibration(device : Int64, calibration_info : Pointer(Void)) : Void
Source
set_joy_motion_sensors_enabled(device : Int64, enable : Bool) : Void
Source
set_magnetometer(value : Vector3) : Void
Source
set_mouse_mode(mode : Int64) : Void
Source
set_use_accumulated_input(enable : Bool) : Void
Source
should_ignore_device(vendor_id : Int64, product_id : Int64) : Bool
Source
start_joy_motion_sensors_calibration(device : Int64) : Void
Source
start_joy_vibration(device : Int64, weak_magnitude : Float64, strong_magnitude : Float64, duration : Float64) : Void
Source
stop_joy_motion_sensors_calibration(device : Int64) : Void
Source
stop_joy_vibration(device : Int64) : Void
Source
use_accumulated_input

Property use_accumulated_input getter

Source
use_accumulated_input=(enable : Bool) : Void
Source
use_accumulated_input=(val)

Property use_accumulated_input setter

Source
use_accumulated_input?
Source
vibrate_handheld(duration_ms : Int64, amplitude : Float64) : Void
Source
warp_mouse(position : Vector2) : Void
Source

Nested types