Skip to main content

IBaseInputMethods

Trait IBaseInputMethods 

Source
pub trait IBaseInputMethods: IBaseInput {
Show 17 methods // Provided methods fn get_composition_string(self) -> Il2CppString { ... } fn get_ime_composition_mode(self) -> IMECompositionMode { ... } fn set_ime_composition_mode(self, value: impl Into<IMECompositionMode>) { ... } fn get_composition_cursor_pos(self) -> Vector2 { ... } fn set_composition_cursor_pos(self, value: impl Into<Vector2>) { ... } fn get_mouse_present(self) -> bool { ... } fn get_mouse_button_down(self, button: impl Into<i32>) -> bool { ... } fn get_mouse_button_up(self, button: impl Into<i32>) -> bool { ... } fn get_mouse_button(self, button: impl Into<i32>) -> bool { ... } fn get_mouse_position(self) -> Vector2 { ... } fn get_mouse_scroll_delta(self) -> Vector2 { ... } fn get_touch_supported(self) -> bool { ... } fn get_touch_count(self) -> i32 { ... } fn get_touch(self, index: impl Into<i32>) -> Touch { ... } fn get_axis_raw(self, axis_name: impl Into<Il2CppString>) -> f32 { ... } fn get_button_down(self, button_name: impl Into<Il2CppString>) -> bool { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_composition_string(self) -> Il2CppString

get_compositionString() overload

Source

fn get_ime_composition_mode(self) -> IMECompositionMode

get_imeCompositionMode() overload

Source

fn set_ime_composition_mode(self, value: impl Into<IMECompositionMode>)

set_imeCompositionMode(crate::unity_engine::imecompositionmode::IMECompositionMode) overload

Source

fn get_composition_cursor_pos(self) -> Vector2

get_compositionCursorPos() overload

Source

fn set_composition_cursor_pos(self, value: impl Into<Vector2>)

set_compositionCursorPos(crate::unity_engine::vector2::Vector2) overload

Source

fn get_mouse_present(self) -> bool

get_mousePresent() overload

Source

fn get_mouse_button_down(self, button: impl Into<i32>) -> bool

GetMouseButtonDown(i32) overload

Source

fn get_mouse_button_up(self, button: impl Into<i32>) -> bool

GetMouseButtonUp(i32) overload

Source

fn get_mouse_button(self, button: impl Into<i32>) -> bool

GetMouseButton(i32) overload

Source

fn get_mouse_position(self) -> Vector2

get_mousePosition() overload

Source

fn get_mouse_scroll_delta(self) -> Vector2

get_mouseScrollDelta() overload

Source

fn get_touch_supported(self) -> bool

get_touchSupported() overload

Source

fn get_touch_count(self) -> i32

get_touchCount() overload

Source

fn get_touch(self, index: impl Into<i32>) -> Touch

GetTouch(i32) overload

Source

fn get_axis_raw(self, axis_name: impl Into<Il2CppString>) -> f32

GetAxisRaw(::unity::Il2CppString) overload

Source

fn get_button_down(self, button_name: impl Into<Il2CppString>) -> bool

GetButtonDown(::unity::Il2CppString) overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IBaseInput> IBaseInputMethods for __T

Available on crate feature unity_engine-event_systems-baseinput only.