pub struct Input(/* private fields */);Expand description
IL2CPP class: UnityEngine.Input
Inherits: Object
Implementations§
Source§impl Input
impl Input
Sourcepub fn get_key_int(key: impl Into<KeyCode>) -> bool
pub fn get_key_int(key: impl Into<KeyCode>) -> bool
GetKeyInt(crate::unity_engine::keycode::KeyCode) overload
Sourcepub fn get_key_up_int(key: impl Into<KeyCode>) -> bool
pub fn get_key_up_int(key: impl Into<KeyCode>) -> bool
GetKeyUpInt(crate::unity_engine::keycode::KeyCode) overload
Sourcepub fn get_key_down_int(key: impl Into<KeyCode>) -> bool
pub fn get_key_down_int(key: impl Into<KeyCode>) -> bool
GetKeyDownInt(crate::unity_engine::keycode::KeyCode) overload
Sourcepub fn get_axis(axis_name: impl Into<Il2CppString>) -> f32
pub fn get_axis(axis_name: impl Into<Il2CppString>) -> f32
GetAxis(::unity::Il2CppString) overload
Sourcepub fn get_axis_raw(axis_name: impl Into<Il2CppString>) -> f32
pub fn get_axis_raw(axis_name: impl Into<Il2CppString>) -> f32
GetAxisRaw(::unity::Il2CppString) overload
GetButton(::unity::Il2CppString) overload
GetButtonDown(::unity::Il2CppString) overload
GetButtonUp(::unity::Il2CppString) overload
GetMouseButton(i32) overload
GetMouseButtonDown(i32) overload
GetMouseButtonUp(i32) overload
Sourcepub fn get_key(key: impl Into<KeyCode>) -> bool
pub fn get_key(key: impl Into<KeyCode>) -> bool
GetKey(crate::unity_engine::keycode::KeyCode) overload
Sourcepub fn get_key_up(key: impl Into<KeyCode>) -> bool
pub fn get_key_up(key: impl Into<KeyCode>) -> bool
GetKeyUp(crate::unity_engine::keycode::KeyCode) overload
Sourcepub fn get_key_down(key: impl Into<KeyCode>) -> bool
pub fn get_key_down(key: impl Into<KeyCode>) -> bool
GetKeyDown(crate::unity_engine::keycode::KeyCode) overload
Sourcepub fn get_mouse_position() -> Vector3
pub fn get_mouse_position() -> Vector3
get_mousePosition() overload
Sourcepub fn get_mouse_scroll_delta() -> Vector2
pub fn get_mouse_scroll_delta() -> Vector2
get_mouseScrollDelta() overload
Sourcepub fn get_ime_composition_mode() -> IMECompositionMode
pub fn get_ime_composition_mode() -> IMECompositionMode
get_imeCompositionMode() overload
Sourcepub fn set_ime_composition_mode(value: impl Into<IMECompositionMode>)
pub fn set_ime_composition_mode(value: impl Into<IMECompositionMode>)
set_imeCompositionMode(crate::unity_engine::imecompositionmode::IMECompositionMode) overload
Sourcepub fn get_composition_string() -> Il2CppString
pub fn get_composition_string() -> Il2CppString
get_compositionString() overload
Sourcepub fn get_composition_cursor_pos() -> Vector2
pub fn get_composition_cursor_pos() -> Vector2
get_compositionCursorPos() overload
Sourcepub fn set_composition_cursor_pos(value: impl Into<Vector2>)
pub fn set_composition_cursor_pos(value: impl Into<Vector2>)
set_compositionCursorPos(crate::unity_engine::vector2::Vector2) overload
Sourcepub fn get_mouse_present() -> bool
pub fn get_mouse_present() -> bool
get_mousePresent() overload
Sourcepub fn get_touch_count() -> i32
pub fn get_touch_count() -> i32
get_touchCount() overload
Sourcepub fn get_touch_supported() -> bool
pub fn get_touch_supported() -> bool
get_touchSupported() overload
Sourcepub fn get_touches() -> Array<Touch>
pub fn get_touches() -> Array<Touch>
get_touches() overload
Sourcepub fn get_touch_injected(index: impl Into<i32>) -> Touch
pub fn get_touch_injected(index: impl Into<i32>) -> Touch
GetTouch_Injected(i32, *mutcrate::unity_engine::touch::Touch) overload
Sourcepub fn get_mouse_position_injected() -> Vector3
pub fn get_mouse_position_injected() -> Vector3
get_mousePosition_Injected(*mutcrate::unity_engine::vector3::Vector3) overload
Sourcepub fn get_mouse_scroll_delta_injected() -> Vector2
pub fn get_mouse_scroll_delta_injected() -> Vector2
get_mouseScrollDelta_Injected(*mutcrate::unity_engine::vector2::Vector2) overload
Sourcepub fn get_composition_cursor_pos_injected() -> Vector2
pub fn get_composition_cursor_pos_injected() -> Vector2
get_compositionCursorPos_Injected(*mutcrate::unity_engine::vector2::Vector2) overload
Sourcepub fn set_composition_cursor_pos_injected() -> Vector2
pub fn set_composition_cursor_pos_injected() -> Vector2
set_compositionCursorPos_Injected(*mutcrate::unity_engine::vector2::Vector2) overload
Source§impl Input
impl Input
pub fn get_key_int_method_info() -> &'static MethodInfo
pub fn get_key_up_int_method_info() -> &'static MethodInfo
pub fn get_key_down_int_method_info() -> &'static MethodInfo
pub fn get_axis_method_info() -> &'static MethodInfo
pub fn get_axis_raw_method_info() -> &'static MethodInfo
pub fn get_touch_method_info() -> &'static MethodInfo
pub fn get_key_method_info() -> &'static MethodInfo
pub fn get_key_up_method_info() -> &'static MethodInfo
pub fn get_key_down_method_info() -> &'static MethodInfo
pub fn get_mouse_position_method_info() -> &'static MethodInfo
pub fn get_mouse_scroll_delta_method_info() -> &'static MethodInfo
pub fn get_ime_composition_mode_method_info() -> &'static MethodInfo
pub fn set_ime_composition_mode_method_info() -> &'static MethodInfo
pub fn get_composition_string_method_info() -> &'static MethodInfo
pub fn get_composition_cursor_pos_method_info() -> &'static MethodInfo
pub fn set_composition_cursor_pos_method_info() -> &'static MethodInfo
pub fn get_mouse_present_method_info() -> &'static MethodInfo
pub fn get_touch_count_method_info() -> &'static MethodInfo
pub fn get_touch_supported_method_info() -> &'static MethodInfo
pub fn get_touches_method_info() -> &'static MethodInfo
pub fn get_touch_injected_method_info() -> &'static MethodInfo
pub fn get_mouse_position_injected_method_info() -> &'static MethodInfo
pub fn get_mouse_scroll_delta_injected_method_info() -> &'static MethodInfo
pub fn get_composition_cursor_pos_injected_method_info() -> &'static MethodInfo
pub fn set_composition_cursor_pos_injected_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for Input
impl ClassIdentity for Input
Source§impl FromIlInstance for Input
impl FromIlInstance for Input
fn from_il_instance(instance: IlInstance) -> Self
fn instantiate() -> Option<Self>
§fn instantiate_with_class(class: Class) -> Option<Self>
fn instantiate_with_class(class: Class) -> Option<Self>
class is a subtype of Self or layout compatibleimpl Copy for Input
impl IInput for Input
impl IObject for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl !Send for Input
impl !Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Cast for Twhere
T: SystemObject,
impl<T> Cast for Twhere
T: SystemObject,
fn get_class(self) -> Class
fn is_null(self) -> bool
fn rebind_class(self, new_class: Class)
fn override_class(self) -> Class
fn is_instance_of<T>(self) -> boolwhere
T: ClassIdentity,
fn is_direct_subclass_of<T>(self) -> boolwhere
T: ClassIdentity,
fn try_cast<T>(self) -> Option<T>where
T: ClassIdentity + FromIlInstance,
§unsafe fn cast<T>(self) -> Twhere
T: ClassIdentity + FromIlInstance,
unsafe fn cast<T>(self) -> Twhere
T: ClassIdentity + FromIlInstance,
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> DefaultInjectedMembers for T
impl<T> DefaultInjectedMembers for T
fn __injected_fields() -> Vec<InjectedFieldDescriptor>
fn __injected_methods() -> Vec<InjectedMethodDescriptor>
fn __injected_overrides() -> Vec<InjectedOverrideDescriptor>
Source§impl<T0, __U> IArrayBuilder_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> IArrayBuilder_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
fn ctor(self, capacity: i32)where
Self: Sized,
fn get_capacity(self) -> i32where
Self: Sized,
fn get_count(self) -> i32where
Self: Sized,
fn get_item(self, index: i32) -> T0where
Self: Sized,
fn add(self, item: T0)where
Self: Sized,
fn to_array(self) -> Array<T0>where
Self: Sized,
fn unchecked_add(self, item: T0)where
Self: Sized,
fn ensure_capacity(self, minimum: i32)where
Self: Sized,
Source§impl<T0, __U> IAsyncOperationHandle_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> IAsyncOperationHandle_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
fn get_location_name(self) -> Il2CppStringwhere
Self: Sized,
fn set_location_name(self, value: Il2CppString)where
Self: Sized,
fn op_implicit(obj: AsyncOperationHandle_1<T0>) -> AsyncOperationHandle
fn ctor(self, op: AsyncOperationBase_1<T0>)where
Self: Sized,
fn get_download_status(self) -> DownloadStatuswhere
Self: Sized,
fn internal_get_download_status(
self,
visited: HashSet_1<Object>,
) -> DownloadStatuswhere
Self: Sized,
fn ctor_2(self, op: IAsyncOperation)where
Self: Sized,
fn ctor_3(self, op: IAsyncOperation, version: i32)where
Self: Sized,
fn ctor_4(self, op: IAsyncOperation, location_name: Il2CppString)where
Self: Sized,
fn ctor_5(self, op: IAsyncOperation, version: i32, location_name: Il2CppString)where
Self: Sized,
fn acquire(self) -> AsyncOperationHandle_1<T0>where
Self: Sized,
fn add_completed(self, value: Action_1<AsyncOperationHandle_1<T0>>)where
Self: Sized,
fn remove_completed(self, value: Action_1<AsyncOperationHandle_1<T0>>)where
Self: Sized,
fn add_completed_typeless(self, value: Action_1<AsyncOperationHandle>)where
Self: Sized,
fn remove_completed_typeless(self, value: Action_1<AsyncOperationHandle>)where
Self: Sized,
fn get_debug_name(self) -> Il2CppStringwhere
Self: Sized,
fn add_destroyed(self, value: Action_1<AsyncOperationHandle>)where
Self: Sized,
fn remove_destroyed(self, value: Action_1<AsyncOperationHandle>)where
Self: Sized,
fn equals(self, other: AsyncOperationHandle_1<T0>) -> boolwhere
Self: Sized,
fn get_hash_code(self) -> i32where
Self: Sized,
fn wait_for_completion(self) -> T0where
Self: Sized,
fn get_internal_op(self) -> AsyncOperationBase_1<T0>where
Self: Sized,
fn get_is_done(self) -> boolwhere
Self: Sized,
fn is_valid(self) -> boolwhere
Self: Sized,
fn get_percent_complete(self) -> f32where
Self: Sized,
fn get_reference_count(self) -> i32where
Self: Sized,
fn release(self)where
Self: Sized,
fn get_result(self) -> T0where
Self: Sized,
fn get_status(self) -> AsyncOperationStatuswhere
Self: Sized,
fn system_collections_i_enumerator_get_current(self) -> Objectwhere
Self: Sized,
fn system_collections_i_enumerator_move_next(self) -> boolwhere
Self: Sized,
fn system_collections_i_enumerator_reset(self)where
Self: Sized,
Source§impl<T0, __U> ICoreUnsafeUtils_DefaultKeyGetter_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> ICoreUnsafeUtils_DefaultKeyGetter_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
Source§impl<T0, T1, __U> IDictionary_2_EnumeratorMethods<T0, T1> for __U
impl<T0, T1, __U> IDictionary_2_EnumeratorMethods<T0, T1> for __U
fn ctor(self, dictionary: Dictionary_2<T0, T1>, get_enumerator_ret_type: i32)where
Self: Sized,
fn move_next(self) -> boolwhere
Self: Sized,
fn get_current(self) -> KeyValuePair_2<T0, T1>where
Self: Sized,
fn dispose(self)where
Self: Sized,
fn system_collections_i_enumerator_get_current(self) -> Objectwhere
Self: Sized,
fn system_collections_i_enumerator_reset(self)where
Self: Sized,
fn system_collections_i_dictionary_enumerator_get_entry(self) -> DictionaryEntrywhere
Self: Sized,
fn system_collections_i_dictionary_enumerator_get_key(self) -> Objectwhere
Self: Sized,
fn system_collections_i_dictionary_enumerator_get_value(self) -> Objectwhere
Self: Sized,
Source§impl<T0, T1, __U> IDictionary_2_KeyCollection_EnumeratorMethods<T0, T1> for __U
impl<T0, T1, __U> IDictionary_2_KeyCollection_EnumeratorMethods<T0, T1> for __U
fn ctor(self, dictionary: Dictionary_2<T0, T1>)where
Self: Sized,
fn dispose(self)where
Self: Sized,
fn move_next(self) -> boolwhere
Self: Sized,
fn get_current(self) -> T0where
Self: Sized,
fn system_collections_i_enumerator_get_current(self) -> Objectwhere
Self: Sized,
fn system_collections_i_enumerator_reset(self)where
Self: Sized,
Source§impl<T0, T1, __U> IDictionary_2_ValueCollection_EnumeratorMethods<T0, T1> for __U
impl<T0, T1, __U> IDictionary_2_ValueCollection_EnumeratorMethods<T0, T1> for __U
fn ctor(self, dictionary: Dictionary_2<T0, T1>)where
Self: Sized,
fn dispose(self)where
Self: Sized,
fn move_next(self) -> boolwhere
Self: Sized,
fn get_current(self) -> T1where
Self: Sized,
fn system_collections_i_enumerator_get_current(self) -> Objectwhere
Self: Sized,
fn system_collections_i_enumerator_reset(self)where
Self: Sized,
Source§impl<T0, __U> IExposedReference_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> IExposedReference_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
fn resolve(self, resolver: IExposedPropertyTable) -> T0where
Self: Sized,
Source§impl<T0, __U> IHashSet_1_EnumeratorMethods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> IHashSet_1_EnumeratorMethods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
fn ctor(self, set: HashSet_1<T0>)where
Self: Sized,
fn dispose(self)where
Self: Sized,
fn move_next(self) -> boolwhere
Self: Sized,
fn get_current(self) -> T0where
Self: Sized,
fn system_collections_i_enumerator_get_current(self) -> Objectwhere
Self: Sized,
fn system_collections_i_enumerator_reset(self)where
Self: Sized,
Source§impl<T0, __U> IIJobParallelForTransformExtensions_TransformParallelForLoopStruct_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> IIJobParallelForTransformExtensions_TransformParallelForLoopStruct_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
fn initialize() -> IntPtr
Source§impl<T0, T1, __U> IKeyValuePair_2Methods<T0, T1> for __U
impl<T0, T1, __U> IKeyValuePair_2Methods<T0, T1> for __U
Source§impl<T0, __U> ILargeArrayBuilder_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> ILargeArrayBuilder_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
fn ctor(self, initialize: bool)where
Self: Sized,
fn ctor_2(self, max_capacity: i32)where
Self: Sized,
fn add_range(self, items: IEnumerable_1<T0>)where
Self: Sized,
fn copy_to(self, array: Array<T0>, array_index: i32, count: i32)where
Self: Sized,
fn get_buffer(self, index: i32) -> Array<T0>where
Self: Sized,
fn to_array(self) -> Array<T0>where
Self: Sized,
fn try_move(self) -> (bool, Array<T0>)where
Self: Sized,
fn allocate_buffer(self)where
Self: Sized,
Source§impl<T0, __U> ILinkedList_1_EnumeratorMethods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> ILinkedList_1_EnumeratorMethods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
fn ctor(self, list: LinkedList_1<T0>)where
Self: Sized,
fn get_current(self) -> T0where
Self: Sized,
fn system_collections_i_enumerator_get_current(self) -> Objectwhere
Self: Sized,
fn move_next(self) -> boolwhere
Self: Sized,
fn system_collections_i_enumerator_reset(self)where
Self: Sized,
fn dispose(self)where
Self: Sized,
fn system_runtime_serialization_i_deserialization_callback_on_deserialization(
self,
sender: Object,
)where
Self: Sized,
Source§impl<T0, __U> IListBuffer_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> IListBuffer_1Methods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
fn get_count(self) -> i32where
Self: Sized,
fn get_capacity(self) -> i32where
Self: Sized,
fn get_item(self) -> (*mut T0, i32)where
Self: Sized,
fn get_unchecked(self) -> (*mut T0, i32)where
Self: Sized,
fn try_add(self) -> (bool, T0)where
Self: Sized,
fn try_copy_to(self, other: ListBuffer_1<T0>) -> boolwhere
Self: Sized,
Source§impl<T0, __U> IList_1_EnumeratorMethods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
impl<T0, __U> IList_1_EnumeratorMethods<T0> for __Uwhere
T0: ClassIdentity,
__U: ClassIdentity,
fn ctor(self, list: List_1<T0>)where
Self: Sized,
fn dispose(self)where
Self: Sized,
fn move_next(self) -> boolwhere
Self: Sized,
fn move_next_rare(self) -> boolwhere
Self: Sized,
fn get_current(self) -> T0where
Self: Sized,
fn system_collections_i_enumerator_get_current(self) -> Objectwhere
Self: Sized,
fn system_collections_i_enumerator_reset(self)where
Self: Sized,
Source§impl<__T> IObjectMethods for __Twhere
__T: IObject,
impl<__T> IObjectMethods for __Twhere
__T: IObject,
Source§fn equals(self, obj: impl Into<Object>) -> bool
fn equals(self, obj: impl Into<Object>) -> bool
Equals(crate::system::object::Object) overloadSource§fn get_hash_code(self) -> i32
fn get_hash_code(self) -> i32
GetHashCode() overloadSource§fn memberwise_clone(self) -> Object
fn memberwise_clone(self) -> Object
MemberwiseClone() overloadSource§fn to_string(self) -> Il2CppString
fn to_string(self) -> Il2CppString
ToString() overloadSource§fn field_getter(
self,
type_name: impl Into<Il2CppString>,
field_name: impl Into<Il2CppString>,
) -> IlInstance
fn field_getter( self, type_name: impl Into<Il2CppString>, field_name: impl Into<Il2CppString>, ) -> IlInstance
FieldGetter(::unity::Il2CppString, ::unity::Il2CppString, *mut::unity::IlInstance) overloadSource§fn field_setter(
self,
type_name: impl Into<Il2CppString>,
field_name: impl Into<Il2CppString>,
val: impl Into<Object>,
)
fn field_setter( self, type_name: impl Into<Il2CppString>, field_name: impl Into<Il2CppString>, val: impl Into<Object>, )
FieldSetter(::unity::Il2CppString, ::unity::Il2CppString, crate::system::object::Object) overload