Skip to main content

engage/generated/unity_engine/event_systems/
standaloneinputmodule18.rs

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