Struct gdnative::InputDefault [−][src]
pub struct InputDefault { /* fields omitted */ }
core class InputDefault : Input
(manually managed)
Base class
InputDefault inherits Input and all of its methods.
Methods
impl InputDefault
[src]
impl InputDefault
Methods from Deref<Target = Input>
pub fn as_object(&self) -> Object
[src]
pub fn as_object(&self) -> Object
Up-cast.
pub fn is_key_pressed(&self, scancode: i64) -> bool
[src]
pub fn is_key_pressed(&self, scancode: i64) -> bool
pub fn is_action_pressed(&self, action: GodotString) -> bool
[src]
pub fn is_action_pressed(&self, action: GodotString) -> bool
pub fn is_action_just_pressed(&self, action: GodotString) -> bool
[src]
pub fn is_action_just_pressed(&self, action: GodotString) -> bool
pub fn is_action_just_released(&self, action: GodotString) -> bool
[src]
pub fn is_action_just_released(&self, action: GodotString) -> bool
pub fn add_joy_mapping(&mut self, mapping: GodotString, update_existing: bool)
[src]
pub fn add_joy_mapping(&mut self, mapping: GodotString, update_existing: bool)
pub fn remove_joy_mapping(&mut self, guid: GodotString)
[src]
pub fn remove_joy_mapping(&mut self, guid: GodotString)
pub fn joy_connection_changed(
&mut self,
device: i64,
connected: bool,
name: GodotString,
guid: GodotString
)
[src]
pub fn joy_connection_changed(
&mut self,
device: i64,
connected: bool,
name: GodotString,
guid: GodotString
)
pub fn is_joy_known(&mut self, device: i64) -> bool
[src]
pub fn is_joy_known(&mut self, device: i64) -> bool
pub fn get_joy_axis(&self, device: i64, axis: i64) -> f64
[src]
pub fn get_joy_axis(&self, device: i64, axis: i64) -> f64
pub fn get_joy_name(&mut self, device: i64) -> GodotString
[src]
pub fn get_joy_name(&mut self, device: i64) -> GodotString
pub fn get_joy_guid(&self, device: i64) -> GodotString
[src]
pub fn get_joy_guid(&self, device: i64) -> GodotString
pub fn get_connected_joypads(&mut self) -> VariantArray
[src]
pub fn get_connected_joypads(&mut self) -> VariantArray
pub fn get_joy_vibration_strength(&mut self, device: i64) -> Vector2
[src]
pub fn get_joy_vibration_strength(&mut self, device: i64) -> Vector2
pub fn get_joy_vibration_duration(&mut self, device: i64) -> f64
[src]
pub fn get_joy_vibration_duration(&mut self, device: i64) -> f64
pub fn get_joy_axis_string(&mut self, axis_index: i64) -> GodotString
[src]
pub fn get_joy_axis_string(&mut self, axis_index: i64) -> GodotString
pub fn get_joy_axis_index_from_string(&mut self, axis: GodotString) -> i64
[src]
pub fn get_joy_axis_index_from_string(&mut self, axis: GodotString) -> i64
pub fn start_joy_vibration(
&mut self,
device: i64,
weak_magnitude: f64,
strong_magnitude: f64,
duration: f64
)
[src]
pub fn start_joy_vibration(
&mut self,
device: i64,
weak_magnitude: f64,
strong_magnitude: f64,
duration: f64
)
pub fn stop_joy_vibration(&mut self, device: i64)
[src]
pub fn stop_joy_vibration(&mut self, device: i64)
pub fn get_gravity(&self) -> Vector3
[src]
pub fn get_gravity(&self) -> Vector3
pub fn get_accelerometer(&self) -> Vector3
[src]
pub fn get_accelerometer(&self) -> Vector3
pub fn get_magnetometer(&self) -> Vector3
[src]
pub fn get_magnetometer(&self) -> Vector3
pub fn get_gyroscope(&self) -> Vector3
[src]
pub fn get_gyroscope(&self) -> Vector3
pub fn get_last_mouse_speed(&self) -> Vector2
[src]
pub fn get_last_mouse_speed(&self) -> Vector2
pub fn set_mouse_mode(&mut self, mode: i64)
[src]
pub fn set_mouse_mode(&mut self, mode: i64)
pub fn warp_mouse_position(&mut self, to: Vector2)
[src]
pub fn warp_mouse_position(&mut self, to: Vector2)
pub fn action_press(&mut self, action: GodotString)
[src]
pub fn action_press(&mut self, action: GodotString)
pub fn action_release(&mut self, action: GodotString)
[src]
pub fn action_release(&mut self, action: GodotString)
pub fn set_custom_mouse_cursor(
&mut self,
image: Option<Resource>,
shape: i64,
hotspot: Vector2
)
[src]
pub fn set_custom_mouse_cursor(
&mut self,
image: Option<Resource>,
shape: i64,
hotspot: Vector2
)
pub fn parse_input_event(&mut self, event: Option<InputEvent>)
[src]
pub fn parse_input_event(&mut self, event: Option<InputEvent>)
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for InputDefault
[src]
impl GodotObject for InputDefault
fn class_name() -> &'static str
[src]
fn class_name() -> &'static str
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
unsafe fn to_sys(&self) -> *mut godot_object
[src]
unsafe fn to_sys(&self) -> *mut godot_object
impl Deref for InputDefault
[src]
impl Deref for InputDefault
type Target = Input
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for InputDefault
[src]
impl DerefMut for InputDefault
Auto Trait Implementations
impl !Send for InputDefault
impl !Send for InputDefault
impl !Sync for InputDefault
impl !Sync for InputDefault