Godot::Input
Inherits Godot::Object < Reference < Object
Godot Input singleton (Input).
Constructors
instance
Sourcenew(pointer : Pointer(Void) = Pointer(Void).null)
SourceClass methods
action_just_pressed?(action : String, exact_match : Bool = false) : Bool
Sourceaction_just_released?(action : String, exact_match : Bool = false) : Bool
Sourceaction_pressed?(action : String, exact_match : Bool = false) : Bool
Sourceaxis(negative_action : String, positive_action : String) : Float32
Sourceget_vector(negative_x : String, positive_x : String, negative_y : String, positive_y : String, deadzone : Float64 = -1.0) : Vector2
Sourceis_action_just_pressed(action : String, exact_match : Bool = false) : Bool
Sourceis_action_just_released(action : String, exact_match : Bool = false) : Bool
Sourceis_action_pressed(action : String, exact_match : Bool = false) : Bool
Sourceis_key_pressed(key : Key | Int32 | Int64) : Bool
Sourceis_mouse_button_pressed(button : MouseButton | Int32 | Int64) : Bool
Sourceis_physical_key_pressed(key : Key | Int32 | Int64) : Bool
Sourcemouse_button_pressed?(button : MouseButton | Int32 | Int64) : Bool
Sourcesingleton_ptr
Sourceuse_accumulated_input
Sourceuse_accumulated_input=(enable : Bool) : Void
SourceInstance methods
action_just_pressed?(action : String, exact_match : Bool = false) : Bool
Sourceaction_just_released?(action : String, exact_match : Bool = false) : Bool
Sourceaction_press(action : String, strength : Float64) : Void
Sourceaction_pressed?(action : String, exact_match : Bool = false) : Bool
Sourceaction_release(action : String) : Void
Sourceadd_joy_mapping(mapping : String, update_existing : Bool) : Void
Sourceaxis(negative_action : String, positive_action : String) : Float32
Sourceclear_joy_motion_sensors_calibration(device : Int64) : Void
Sourceemulate_mouse_from_touch?
Sourceemulate_touch_from_mouse?
Sourceflush_buffered_events
Sourceget_accelerometer
Sourceget_action_raw_strength(action : String, exact_match : Bool) : Float64
Sourceget_action_strength(action : String, exact_match : Bool) : Float64
Sourceget_axis(negative_action : String, positive_action : String) : Float64
Sourceget_connected_joypads
Sourceget_current_cursor_shape
Sourceget_device_orientation
Sourceget_gravity
Sourceget_gyroscope
Sourceget_joy_axis(device : Int64, axis : Int64) : Float64
Sourceget_joy_guid(device : Int64) : String
Sourceget_joy_info(device : Int64) : Pointer(Void)
Sourceget_joy_motion_sensors_calibration(device : Int64) : Pointer(Void)
Sourceget_joy_motion_sensors_rate(device : Int64) : Float64
Sourceget_joy_name(device : Int64) : String
Sourceget_joy_num_touchpads(device : Int64) : Int64
Sourceget_joy_touchpad_finger_pressure(device : Int64, finger : Int64, touchpad : Int64) : Float64
Sourceget_joy_touchpad_fingers(device : Int64, touchpad : Int64) : Pointer(Void)
Sourceget_joy_vibration_duration(device : Int64) : Float64
Sourceget_joy_vibration_remaining_duration(device : Int64) : Float64
Sourceget_last_mouse_screen_velocity
Sourceget_last_mouse_velocity
Sourceget_magnetometer
Sourceget_mouse_button_mask
Sourceget_mouse_mode
Sourceget_vector(negative_x : String, positive_x : String, negative_y : String, positive_y : String, deadzone : Float64 = -1.0) : Vector2
Sourcehas_joy_light(device : Int64) : Bool
Sourcehas_joy_motion_sensors(device : Int64) : Bool
Sourcehas_joy_vibration(device : Int64) : Bool
Sourceignore_joypad_on_unfocused_application=(val)
Property ignore_joypad_on_unfocused_application setter
ignore_joypad_on_unfocused_application?
Sourceis_action_just_pressed(action : String, exact_match : Bool) : Bool
Sourceis_action_just_pressed_by_event(action : String, event : InputEvent, exact_match : Bool) : Bool
Sourceis_action_just_released(action : String, exact_match : Bool) : Bool
Sourceis_action_just_released_by_event(action : String, event : InputEvent, exact_match : Bool) : Bool
Sourceis_action_pressed(action : String, exact_match : Bool) : Bool
Sourceis_anything_pressed
Sourceis_emulating_mouse_from_touch
Sourceis_emulating_touch_from_mouse
Sourceis_ignoring_joypad_on_unfocused_application
Sourceis_joy_button_pressed(device : Int64, button : Int64) : Bool
Sourceis_joy_known(device : Int64) : Bool
Sourceis_joy_motion_sensors_auto_calibration_enabled(device : Int64) : Bool
Sourceis_joy_motion_sensors_calibrated(device : Int64) : Bool
Sourceis_joy_motion_sensors_calibrating(device : Int64) : Bool
Sourceis_joy_motion_sensors_enabled(device : Int64) : Bool
Sourceis_joy_vibrating(device : Int64) : Bool
Sourceis_key_label_pressed(keycode : Int64) : Bool
Sourceis_key_pressed(keycode : Int64) : Bool
Sourceis_mouse_button_pressed(button : Int64) : Bool
Sourceis_mouse_button_pressed(button : MouseButton | Int32 | Int64) : Bool
Sourceis_physical_key_pressed(keycode : Int64) : Bool
Sourceis_using_accumulated_input
Sourcemouse_button_pressed?(button : MouseButton | Int32 | Int64) : Bool
Sourceparse_input_event(event : InputEvent) : Void
Sourceremove_joy_mapping(guid : String) : Void
Sourceset_default_cursor_shape(shape : Int64) : Void
Sourceset_emulate_mouse_from_touch(enable : Bool) : Void
Sourceset_emulate_touch_from_mouse(enable : Bool) : Void
Sourceset_ignore_joypad_on_unfocused_application(enable : Bool) : Void
Sourceset_joy_motion_sensors_auto_calibration_enabled(device : Int64, enable : Bool) : Void
Sourceset_joy_motion_sensors_calibration(device : Int64, calibration_info : Pointer(Void)) : Void
Sourceset_joy_motion_sensors_enabled(device : Int64, enable : Bool) : Void
Sourceset_mouse_mode(mode : Int64) : Void
Sourceset_use_accumulated_input(enable : Bool) : Void
Sourceshould_ignore_device(vendor_id : Int64, product_id : Int64) : Bool
Sourcestart_joy_motion_sensors_calibration(device : Int64) : Void
Sourcestart_joy_vibration(device : Int64, weak_magnitude : Float64, strong_magnitude : Float64, duration : Float64) : Void
Sourcestop_joy_motion_sensors_calibration(device : Int64) : Void
Sourcestop_joy_vibration(device : Int64) : Void
Sourceuse_accumulated_input=(enable : Bool) : Void
Sourceuse_accumulated_input?
Sourcevibrate_handheld(duration_ms : Int64, amplitude : Float64) : Void
Source