Skip to main content

engage/generated/unity_engine/event_systems/
standaloneinputmodule.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-event_systems-standaloneinputmodule-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            event_systems::{
18                baseinputmodule::{BaseInputModule, IBaseInputModule},
19                pointerinputmodule::{IPointerInputModule, PointerInputModule},
20                uibehaviour::{IUIBehaviour, UIBehaviour},
21            },
22            monobehaviour::{IMonoBehaviour, MonoBehaviour},
23            object_2::{IObject_2, Object_2},
24        },
25    };
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/standaloneinputmodule/StandaloneInputModule_InputMode.md"))]
28    #[repr(C)]
29    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
30    pub struct StandaloneInputModule_InputMode {
31        pub value: i32,
32    }
33    impl ::unity::ClassIdentity for StandaloneInputModule_InputMode {
34        const NAME: &'static str = "StandaloneInputModule.InputMode";
35        const NAMESPACE: &'static str = "UnityEngine.EventSystems";
36
37        fn class() -> ::unity::Class {
38            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
39            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
40        }
41    }
42    impl ::unity::IlType for StandaloneInputModule_InputMode {
43        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
44            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
45        }
46    }
47    impl StandaloneInputModule_InputMode {
48        pub fn mouse() -> Self {
49            Self { value: 0 }
50        }
51
52        pub fn buttons() -> Self {
53            Self { value: 1 }
54        }
55    }
56
57    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/standaloneinputmodule/StandaloneInputModule.md"))]
58    #[::unity::class(namespace = "UnityEngine.EventSystems", name = "StandaloneInputModule")]
59    #[parent(crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule)]
60    pub struct StandaloneInputModule {
61        #[offset(88)]
62        #[rename(name = "m_PrevActionTime")]
63        pub m_prev_action_time: f32,
64        #[offset(92)]
65        #[rename(name = "m_LastMoveVector")]
66        pub m_last_move_vector: crate::unity_engine::vector2::Vector2,
67        #[offset(100)]
68        #[rename(name = "m_ConsecutiveMoveCount")]
69        pub m_consecutive_move_count: i32,
70        #[offset(104)]
71        #[rename(name = "m_LastMousePosition")]
72        pub m_last_mouse_position: crate::unity_engine::vector2::Vector2,
73        #[offset(112)]
74        #[rename(name = "m_MousePosition")]
75        pub m_mouse_position: crate::unity_engine::vector2::Vector2,
76        #[offset(120)]
77        #[rename(name = "m_CurrentFocusedGameObject")]
78        pub m_current_focused_game_object: crate::unity_engine::gameobject::GameObject,
79        #[offset(128)]
80        #[rename(name = "m_InputPointerEvent")]
81        pub m_input_pointer_event: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
82        #[offset(136)]
83        #[rename(name = "m_HorizontalAxis")]
84        pub m_horizontal_axis: ::unity::Il2CppString,
85        #[offset(144)]
86        #[rename(name = "m_VerticalAxis")]
87        pub m_vertical_axis: ::unity::Il2CppString,
88        #[offset(152)]
89        #[rename(name = "m_SubmitButton")]
90        pub m_submit_button: ::unity::Il2CppString,
91        #[offset(160)]
92        #[rename(name = "m_CancelButton")]
93        pub m_cancel_button: ::unity::Il2CppString,
94        #[offset(168)]
95        #[rename(name = "m_InputActionsPerSecond")]
96        pub m_input_actions_per_second: f32,
97        #[offset(172)]
98        #[rename(name = "m_RepeatDelay")]
99        pub m_repeat_delay: f32,
100        #[offset(176)]
101        #[rename(name = "m_ForceModuleActive")]
102        pub m_force_module_active: bool,
103    }
104}
105
106#[cfg(feature = "unity_engine-event_systems-standaloneinputmodule-types")]
107pub use __types::*;
108
109#[cfg(feature = "unity_engine-event_systems-standaloneinputmodule")]
110pub trait IStandaloneInputModuleMethods: IStandaloneInputModule {
111    #[doc = "`.ctor()` overload"]
112    fn ctor(self) -> () {
113        unsafe {
114            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x3c02910usize)as*mut u8,();
116(StandaloneInputModule)__receiver)
117        }
118    }
119    #[doc = "`get_inputMode()` overload"]
120    fn get_input_mode(self) -> crate::unity_engine::event_systems::standaloneinputmodule::StandaloneInputModule_InputMode {
121        unsafe {
122            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a00usize)as*mut u8,crate::unity_engine::event_systems::standaloneinputmodule::StandaloneInputModule_InputMode;
124(StandaloneInputModule)__receiver)
125        }
126    }
127    #[doc = "`get_allowActivationOnMobileDevice()` overload"]
128    fn get_allow_activation_on_mobile_device(self) -> bool {
129        unsafe {
130            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a10usize)as*mut u8,bool;
132(StandaloneInputModule)__receiver)
133        }
134    }
135    #[doc = "`set_allowActivationOnMobileDevice(bool)` overload"]
136    fn set_allow_activation_on_mobile_device(self, value: impl ::core::convert::Into<bool>) -> () {
137        unsafe {
138            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a20usize)as*mut u8,();
140(StandaloneInputModule)__receiver,(bool)::core::convert::Into::into(value))
141        }
142    }
143    #[doc = "`get_forceModuleActive()` overload"]
144    fn get_force_module_active(self) -> bool {
145        unsafe {
146            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a30usize)as*mut u8,bool;
148(StandaloneInputModule)__receiver)
149        }
150    }
151    #[doc = "`set_forceModuleActive(bool)` overload"]
152    fn set_force_module_active(self, value: impl ::core::convert::Into<bool>) -> () {
153        unsafe {
154            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a40usize)as*mut u8,();
156(StandaloneInputModule)__receiver,(bool)::core::convert::Into::into(value))
157        }
158    }
159    #[doc = "`get_inputActionsPerSecond()` overload"]
160    fn get_input_actions_per_second(self) -> f32 {
161        unsafe {
162            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a50usize)as*mut u8,f32;
164(StandaloneInputModule)__receiver)
165        }
166    }
167    #[doc = "`set_inputActionsPerSecond(f32)` overload"]
168    fn set_input_actions_per_second(self, value: impl ::core::convert::Into<f32>) -> () {
169        unsafe {
170            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a60usize)as*mut u8,();
172(StandaloneInputModule)__receiver,(f32)::core::convert::Into::into(value))
173        }
174    }
175    #[doc = "`get_repeatDelay()` overload"]
176    fn get_repeat_delay(self) -> f32 {
177        unsafe {
178            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a70usize)as*mut u8,f32;
180(StandaloneInputModule)__receiver)
181        }
182    }
183    #[doc = "`set_repeatDelay(f32)` overload"]
184    fn set_repeat_delay(self, value: impl ::core::convert::Into<f32>) -> () {
185        unsafe {
186            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a80usize)as*mut u8,();
188(StandaloneInputModule)__receiver,(f32)::core::convert::Into::into(value))
189        }
190    }
191    #[doc = "`get_horizontalAxis()` overload"]
192    fn get_horizontal_axis(self) -> ::unity::Il2CppString {
193        unsafe {
194            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x3c02a90usize)as*mut u8, ::unity::Il2CppString;
196(StandaloneInputModule)__receiver)
197        }
198    }
199    #[doc = "`set_horizontalAxis(::unity::Il2CppString)` overload"]
200    fn set_horizontal_axis(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
201        unsafe {
202            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x3c02aa0usize)as*mut u8,();
204(StandaloneInputModule)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
205        }
206    }
207    #[doc = "`get_verticalAxis()` overload"]
208    fn get_vertical_axis(self) -> ::unity::Il2CppString {
209        unsafe {
210            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x3c02ab0usize)as*mut u8, ::unity::Il2CppString;
212(StandaloneInputModule)__receiver)
213        }
214    }
215    #[doc = "`set_verticalAxis(::unity::Il2CppString)` overload"]
216    fn set_vertical_axis(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
217        unsafe {
218            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!((::unity::module_base()+0x3c02ac0usize)as*mut u8,();
220(StandaloneInputModule)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
221        }
222    }
223    #[doc = "`get_submitButton()` overload"]
224    fn get_submit_button(self) -> ::unity::Il2CppString {
225        unsafe {
226            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            ::unity::il2cpp_call!((::unity::module_base()+0x3c02ad0usize)as*mut u8, ::unity::Il2CppString;
228(StandaloneInputModule)__receiver)
229        }
230    }
231    #[doc = "`set_submitButton(::unity::Il2CppString)` overload"]
232    fn set_submit_button(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
233        unsafe {
234            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235            ::unity::il2cpp_call!((::unity::module_base()+0x3c02ae0usize)as*mut u8,();
236(StandaloneInputModule)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
237        }
238    }
239    #[doc = "`get_cancelButton()` overload"]
240    fn get_cancel_button(self) -> ::unity::Il2CppString {
241        unsafe {
242            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            ::unity::il2cpp_call!((::unity::module_base()+0x3c02af0usize)as*mut u8, ::unity::Il2CppString;
244(StandaloneInputModule)__receiver)
245        }
246    }
247    #[doc = "`set_cancelButton(::unity::Il2CppString)` overload"]
248    fn set_cancel_button(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
249        unsafe {
250            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251            ::unity::il2cpp_call!((::unity::module_base()+0x3c02b00usize)as*mut u8,();
252(StandaloneInputModule)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
253        }
254    }
255    #[doc = "`ShouldIgnoreEventsOnNoFocus()` overload"]
256    fn should_ignore_events_on_no_focus(self) -> bool {
257        unsafe {
258            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259            ::unity::il2cpp_call!((::unity::module_base()+0x3c02b10usize)as*mut u8,bool;
260(StandaloneInputModule)__receiver)
261        }
262    }
263    #[doc = "`UpdateModule()` overload"]
264    fn update_module(self) -> () {
265        unsafe {
266            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267            {
268                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
269                let __vi = *__vt.get(24usize).unwrap_or_else(|| {
270                    panic!(
271                        "unity: virtual slot {}
272 out of range (vtable len {}
273) on the runtime class behind {}
274 (method `{}
275`)",
276                        24usize,
277                        __vt.len(),
278                        <StandaloneInputModule as ::unity::ClassIdentity>::NAME,
279                        "UpdateModule",
280                    )
281                });
282                let __inner: extern "C" fn(StandaloneInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
283                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
284                __inner(__receiver, __mi)
285            }
286        }
287    }
288    #[doc = "`ReleaseMouse(crate::unity_engine::event_systems::pointereventdata::PointerEventData, crate::unity_engine::gameobject::GameObject)` overload"]
289    fn release_mouse(
290        self,
291        pointer_event: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
292        current_over_go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
293    ) -> () {
294        unsafe {
295            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
296            ::unity::il2cpp_call!((::unity::module_base()+0x3c02c10usize)as*mut u8,();
297(StandaloneInputModule)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(pointer_event),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(current_over_go))
298        }
299    }
300    #[doc = "`IsModuleSupported()` overload"]
301    fn is_module_supported(self) -> bool {
302        unsafe {
303            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
304            {
305                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
306                let __vi = *__vt.get(25usize).unwrap_or_else(|| {
307                    panic!(
308                        "unity: virtual slot {}
309 out of range (vtable len {}
310) on the runtime class behind {}
311 (method `{}
312`)",
313                        25usize,
314                        __vt.len(),
315                        <StandaloneInputModule as ::unity::ClassIdentity>::NAME,
316                        "IsModuleSupported",
317                    )
318                });
319                let __inner: extern "C" fn(StandaloneInputModule, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
320                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
321                __inner(__receiver, __mi)
322            }
323        }
324    }
325    #[doc = "`ShouldActivateModule()` overload"]
326    fn should_activate_module(self) -> bool {
327        unsafe {
328            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
329            {
330                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
331                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
332                    panic!(
333                        "unity: virtual slot {}
334 out of range (vtable len {}
335) on the runtime class behind {}
336 (method `{}
337`)",
338                        21usize,
339                        __vt.len(),
340                        <StandaloneInputModule as ::unity::ClassIdentity>::NAME,
341                        "ShouldActivateModule",
342                    )
343                });
344                let __inner: extern "C" fn(StandaloneInputModule, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
345                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
346                __inner(__receiver, __mi)
347            }
348        }
349    }
350    #[doc = "`ActivateModule()` overload"]
351    fn activate_module(self) -> () {
352        unsafe {
353            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
354            {
355                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
356                let __vi = *__vt.get(23usize).unwrap_or_else(|| {
357                    panic!(
358                        "unity: virtual slot {}
359 out of range (vtable len {}
360) on the runtime class behind {}
361 (method `{}
362`)",
363                        23usize,
364                        __vt.len(),
365                        <StandaloneInputModule as ::unity::ClassIdentity>::NAME,
366                        "ActivateModule",
367                    )
368                });
369                let __inner: extern "C" fn(StandaloneInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
370                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
371                __inner(__receiver, __mi)
372            }
373        }
374    }
375    #[doc = "`DeactivateModule()` overload"]
376    fn deactivate_module(self) -> () {
377        unsafe {
378            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
379            {
380                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
381                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
382                    panic!(
383                        "unity: virtual slot {}
384 out of range (vtable len {}
385) on the runtime class behind {}
386 (method `{}
387`)",
388                        22usize,
389                        __vt.len(),
390                        <StandaloneInputModule as ::unity::ClassIdentity>::NAME,
391                        "DeactivateModule",
392                    )
393                });
394                let __inner: extern "C" fn(StandaloneInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
395                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
396                __inner(__receiver, __mi)
397            }
398        }
399    }
400    #[doc = "`Process()` overload"]
401    fn process(self) -> () {
402        unsafe {
403            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404            {
405                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
406                let __vi = *__vt.get(17usize).unwrap_or_else(|| {
407                    panic!(
408                        "unity: virtual slot {}
409 out of range (vtable len {}
410) on the runtime class behind {}
411 (method `{}
412`)",
413                        17usize,
414                        __vt.len(),
415                        <StandaloneInputModule as ::unity::ClassIdentity>::NAME,
416                        "Process",
417                    )
418                });
419                let __inner: extern "C" fn(StandaloneInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
420                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
421                __inner(__receiver, __mi)
422            }
423        }
424    }
425    #[doc = "`ProcessTouchEvents()` overload"]
426    fn process_touch_events(self) -> bool {
427        unsafe {
428            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
429            ::unity::il2cpp_call!((::unity::module_base()+0x3c03600usize)as*mut u8,bool;
430(StandaloneInputModule)__receiver)
431        }
432    }
433    #[doc = "`ProcessTouchPress(crate::unity_engine::event_systems::pointereventdata::PointerEventData, bool, bool)` overload"]
434    fn process_touch_press(
435        self,
436        pointer_event: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
437        pressed: impl ::core::convert::Into<bool>,
438        released: impl ::core::convert::Into<bool>,
439    ) -> () {
440        unsafe {
441            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
442            ::unity::il2cpp_call!((::unity::module_base()+0x3c03c50usize)as*mut u8,();
443(StandaloneInputModule)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(pointer_event),(bool)::core::convert::Into::into(pressed),(bool)::core::convert::Into::into(released))
444        }
445    }
446    #[doc = "`SendSubmitEventToSelectedObject()` overload"]
447    fn send_submit_event_to_selected_object(self) -> bool {
448        unsafe {
449            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
450            ::unity::il2cpp_call!((::unity::module_base()+0x3c03a10usize)as*mut u8,bool;
451(StandaloneInputModule)__receiver)
452        }
453    }
454    #[doc = "`GetRawMoveVector()` overload"]
455    fn get_raw_move_vector(self) -> crate::unity_engine::vector2::Vector2 {
456        unsafe {
457            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
458            ::unity::il2cpp_call!((::unity::module_base()+0x3c04490usize)as*mut u8,crate::unity_engine::vector2::Vector2;
459(StandaloneInputModule)__receiver)
460        }
461    }
462    #[doc = "`SendMoveEventToSelectedObject()` overload"]
463    fn send_move_event_to_selected_object(self) -> bool {
464        unsafe {
465            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466            ::unity::il2cpp_call!((::unity::module_base()+0x3c037e0usize)as*mut u8,bool;
467(StandaloneInputModule)__receiver)
468        }
469    }
470    #[doc = "`ProcessMouseEvent()` overload"]
471    fn process_mouse_event(self) -> () {
472        unsafe {
473            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
474            ::unity::il2cpp_call!((::unity::module_base()+0x3c037d0usize)as*mut u8,();
475(StandaloneInputModule)__receiver)
476        }
477    }
478    #[doc = "`ForceAutoSelect()` overload"]
479    fn force_auto_select(self) -> bool {
480        unsafe {
481            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
482            {
483                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
484                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
485                    panic!(
486                        "unity: virtual slot {}
487 out of range (vtable len {}
488) on the runtime class behind {}
489 (method `{}
490`)",
491                        30usize,
492                        __vt.len(),
493                        <StandaloneInputModule as ::unity::ClassIdentity>::NAME,
494                        "ForceAutoSelect",
495                    )
496                });
497                let __inner: extern "C" fn(StandaloneInputModule, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
498                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
499                __inner(__receiver, __mi)
500            }
501        }
502    }
503    #[doc = "`ProcessMouseEvent(i32)` overload"]
504    fn process_mouse_event_2(self, id: impl ::core::convert::Into<i32>) -> () {
505        unsafe {
506            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
507            ::unity::il2cpp_call!((::unity::module_base()+0x3c04590usize)as*mut u8,();
508(StandaloneInputModule)__receiver,(i32)::core::convert::Into::into(id))
509        }
510    }
511    #[doc = "`SendUpdateEventToSelectedObject()` overload"]
512    fn send_update_event_to_selected_object(self) -> bool {
513        unsafe {
514            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
515            ::unity::il2cpp_call!((::unity::module_base()+0x3c03480usize)as*mut u8,bool;
516(StandaloneInputModule)__receiver)
517        }
518    }
519    #[doc = "`ProcessMousePress(crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseButtonEventData)` overload"]
520    fn process_mouse_press(
521        self,
522        data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseButtonEventData>,
523    ) -> () {
524        unsafe {
525            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
526            ::unity::il2cpp_call!((::unity::module_base()+0x3c04960usize)as*mut u8,();
527(StandaloneInputModule)__receiver,(crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseButtonEventData)::core::convert::Into::into(data))
528        }
529    }
530    #[doc = "`GetCurrentFocusedGameObject()` overload"]
531    fn get_current_focused_game_object(self) -> crate::unity_engine::gameobject::GameObject {
532        unsafe {
533            let __receiver = <StandaloneInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
534            ::unity::il2cpp_call!((::unity::module_base()+0x3c04db0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
535(StandaloneInputModule)__receiver)
536        }
537    }
538}
539
540#[cfg(feature = "unity_engine-event_systems-standaloneinputmodule")]
541impl<__T: IStandaloneInputModule> IStandaloneInputModuleMethods for __T {}
542
543#[cfg(feature = "unity_engine-event_systems-standaloneinputmodule")]
544impl StandaloneInputModule {
545    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
547    }
548
549    pub fn get_input_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
551    }
552
553    pub fn get_allow_activation_on_mobile_device_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
555    }
556
557    pub fn set_allow_activation_on_mobile_device_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
559    }
560
561    pub fn get_force_module_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
563    }
564
565    pub fn set_force_module_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
567    }
568
569    pub fn get_input_actions_per_second_method_info() -> &'static ::unity::il2cpp::MethodInfo {
570        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
571    }
572
573    pub fn set_input_actions_per_second_method_info() -> &'static ::unity::il2cpp::MethodInfo {
574        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
575    }
576
577    pub fn get_repeat_delay_method_info() -> &'static ::unity::il2cpp::MethodInfo {
578        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
579    }
580
581    pub fn set_repeat_delay_method_info() -> &'static ::unity::il2cpp::MethodInfo {
582        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
583    }
584
585    pub fn get_horizontal_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
586        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
587    }
588
589    pub fn set_horizontal_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
591    }
592
593    pub fn get_vertical_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
594        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
595    }
596
597    pub fn set_vertical_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
598        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
599    }
600
601    pub fn get_submit_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
602        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
603    }
604
605    pub fn set_submit_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
607    }
608
609    pub fn get_cancel_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
611    }
612
613    pub fn set_cancel_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
615    }
616
617    pub fn should_ignore_events_on_no_focus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
619    }
620
621    pub fn update_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
622        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
623    }
624
625    pub fn release_mouse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
626        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
627    }
628
629    pub fn is_module_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
630        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
631    }
632
633    pub fn should_activate_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
634        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
635    }
636
637    pub fn activate_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
638        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
639    }
640
641    pub fn deactivate_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
642        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
643    }
644
645    pub fn process_method_info() -> &'static ::unity::il2cpp::MethodInfo {
646        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
647    }
648
649    pub fn process_touch_events_method_info() -> &'static ::unity::il2cpp::MethodInfo {
650        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
651    }
652
653    pub fn process_touch_press_method_info() -> &'static ::unity::il2cpp::MethodInfo {
654        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
655    }
656
657    pub fn send_submit_event_to_selected_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
658        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
659    }
660
661    pub fn get_raw_move_vector_method_info() -> &'static ::unity::il2cpp::MethodInfo {
662        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
663    }
664
665    pub fn send_move_event_to_selected_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
666        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
667    }
668
669    pub fn process_mouse_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
670        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
671    }
672
673    pub fn force_auto_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
674        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
675    }
676
677    pub fn process_mouse_event_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
678        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
679    }
680
681    pub fn send_update_event_to_selected_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
682        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
683    }
684
685    pub fn process_mouse_press_method_info() -> &'static ::unity::il2cpp::MethodInfo {
686        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
687    }
688
689    pub fn get_current_focused_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
690        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
691    }
692}
693
694#[cfg(feature = "unity_engine-event_systems-standaloneinputmodule")]
695impl StandaloneInputModule {
696    #[doc = "Direct (non-virtual) call to `StandaloneInputModule`'s own `UpdateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
697    pub unsafe fn update_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
698        let __mi = Self::update_module_method_info();
699        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
700        __inner(this.into(), ::core::option::Option::None)
701    }
702
703    #[doc = "Direct (non-virtual) call to `StandaloneInputModule`'s own `IsModuleSupported`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
704    pub unsafe fn is_module_supported(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
705        let __mi = Self::is_module_supported_method_info();
706        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
707        __inner(this.into(), ::core::option::Option::None)
708    }
709
710    #[doc = "Direct (non-virtual) call to `StandaloneInputModule`'s own `ShouldActivateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
711    pub unsafe fn should_activate_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
712        let __mi = Self::should_activate_module_method_info();
713        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
714        __inner(this.into(), ::core::option::Option::None)
715    }
716
717    #[doc = "Direct (non-virtual) call to `StandaloneInputModule`'s own `ActivateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
718    pub unsafe fn activate_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
719        let __mi = Self::activate_module_method_info();
720        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
721        __inner(this.into(), ::core::option::Option::None)
722    }
723
724    #[doc = "Direct (non-virtual) call to `StandaloneInputModule`'s own `DeactivateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
725    pub unsafe fn deactivate_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
726        let __mi = Self::deactivate_module_method_info();
727        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
728        __inner(this.into(), ::core::option::Option::None)
729    }
730
731    #[doc = "Direct (non-virtual) call to `StandaloneInputModule`'s own `Process`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
732    pub unsafe fn process(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
733        let __mi = Self::process_method_info();
734        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
735        __inner(this.into(), ::core::option::Option::None)
736    }
737
738    #[doc = "Direct (non-virtual) call to `StandaloneInputModule`'s own `ForceAutoSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
739    pub unsafe fn force_auto_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
740        let __mi = Self::force_auto_select_method_info();
741        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
742        __inner(this.into(), ::core::option::Option::None)
743    }
744}
745
746#[cfg(feature = "unity_engine-event_systems-standaloneinputmodule")]
747impl StandaloneInputModule {
748    #[doc = "`.ctor()` — no args"]
749    pub fn new() -> Self {
750        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
751            panic!(
752                "{}
753::{}
754 failed to instantiate",
755                ::core::stringify!(StandaloneInputModule),
756                ::core::stringify!(new),
757            )
758        });
759        <Self as IStandaloneInputModuleMethods>::ctor(this);
760        this
761    }
762}
763
764#[cfg(feature = "unity_engine-event_systems-standaloneinputmodule")]
765#[doc(hidden)]
766pub mod prelude {
767    pub use super::{IStandaloneInputModule, IStandaloneInputModuleMethods, StandaloneInputModule, StandaloneInputModule_InputMode};
768    #[cfg(feature = "system-object")]
769    pub use crate::system::object::IObjectMethods;
770    #[cfg(feature = "system-enum")]
771    pub use crate::system::r#enum::IEnumMethods;
772    #[cfg(feature = "system-valuetype")]
773    pub use crate::system::valuetype::IValueTypeMethods;
774    #[cfg(feature = "unity_engine-behaviour")]
775    pub use crate::unity_engine::behaviour::IBehaviourMethods;
776    #[cfg(feature = "unity_engine-component")]
777    pub use crate::unity_engine::component::IComponentMethods;
778    #[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
779    pub use crate::unity_engine::event_systems::baseinputmodule::IBaseInputModuleMethods;
780    #[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
781    pub use crate::unity_engine::event_systems::pointerinputmodule::IPointerInputModuleMethods;
782    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
783    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
784    #[cfg(feature = "unity_engine-monobehaviour")]
785    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
786    #[cfg(feature = "unity_engine-object_2")]
787    pub use crate::unity_engine::object_2::IObject_2Methods;
788    pub use crate::{
789        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
790        unity_engine::{
791            behaviour::IBehaviour,
792            component::IComponent,
793            event_systems::{baseinputmodule::IBaseInputModule, pointerinputmodule::IPointerInputModule, uibehaviour::IUIBehaviour},
794            monobehaviour::IMonoBehaviour,
795            object_2::IObject_2,
796        },
797    };
798}