Skip to main content

engage/generated/unity_engine/event_systems/
baseinputmodule.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-event_systems-baseinputmodule-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/baseinputmodule/BaseInputModule.md"))]
20    #[::unity::class(namespace = "UnityEngine.EventSystems", name = "BaseInputModule")]
21    #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
22    pub struct BaseInputModule {
23        #[offset(24)]
24        #[rename(name = "m_RaycastResultCache")]
25        pub m_raycast_result_cache:
26            crate::system::collections::generic::list_1::List_1<crate::unity_engine::event_systems::raycastresult::RaycastResult>,
27        #[offset(32)]
28        #[rename(name = "m_AxisEventData")]
29        pub m_axis_event_data: crate::unity_engine::event_systems::axiseventdata::AxisEventData,
30        #[offset(40)]
31        #[rename(name = "m_EventSystem")]
32        pub m_event_system: crate::unity_engine::event_systems::eventsystem::EventSystem,
33        #[offset(48)]
34        #[rename(name = "m_BaseEventData")]
35        pub m_base_event_data: crate::unity_engine::event_systems::baseeventdata::BaseEventData,
36        #[offset(56)]
37        #[rename(name = "m_InputOverride")]
38        pub m_input_override: crate::unity_engine::event_systems::baseinput::BaseInput,
39        #[offset(64)]
40        #[rename(name = "m_DefaultInput")]
41        pub m_default_input: crate::unity_engine::event_systems::baseinput::BaseInput,
42    }
43}
44
45#[cfg(feature = "unity_engine-event_systems-baseinputmodule-types")]
46pub use __types::*;
47
48#[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
49impl BaseInputModule {
50    #[doc = "`FindFirstRaycast(crate::system::collections::generic::list_1::List_1<crate::unity_engine::event_systems::raycastresult::RaycastResult>)` overload"]
51    pub fn find_first_raycast(
52        candidates: impl ::core::convert::Into<
53            crate::system::collections::generic::list_1::List_1<crate::unity_engine::event_systems::raycastresult::RaycastResult>,
54        >,
55    ) -> crate::unity_engine::event_systems::raycastresult::RaycastResult {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x317aa10usize)as*mut u8,crate::unity_engine::event_systems::raycastresult::RaycastResult;
58(crate::system::collections::generic::list_1::List_1<crate::unity_engine::event_systems::raycastresult::RaycastResult>)::core::convert::Into::into(candidates))
59        }
60    }
61
62    #[doc = "`DetermineMoveDirection(f32, f32)` overload"]
63    pub fn determine_move_direction(
64        x: impl ::core::convert::Into<f32>,
65        y: impl ::core::convert::Into<f32>,
66    ) -> crate::unity_engine::event_systems::movedirection::MoveDirection {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x317ab60usize)as*mut u8,crate::unity_engine::event_systems::movedirection::MoveDirection;
69(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y))
70        }
71    }
72
73    #[doc = "`DetermineMoveDirection(f32, f32, f32)` overload"]
74    pub fn determine_move_direction_2(
75        x: impl ::core::convert::Into<f32>,
76        y: impl ::core::convert::Into<f32>,
77        dead_zone: impl ::core::convert::Into<f32>,
78    ) -> crate::unity_engine::event_systems::movedirection::MoveDirection {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x317abe0usize)as*mut u8,crate::unity_engine::event_systems::movedirection::MoveDirection;
81(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(f32)::core::convert::Into::into(dead_zone))
82        }
83    }
84
85    #[doc = "`FindCommonRoot(crate::unity_engine::gameobject::GameObject, crate::unity_engine::gameobject::GameObject)` overload"]
86    pub fn find_common_root(
87        g1: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
88        g2: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
89    ) -> crate::unity_engine::gameobject::GameObject {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x317ac70usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
92(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(g1),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(g2))
93        }
94    }
95}
96
97#[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
98pub trait IBaseInputModuleMethods: IBaseInputModule {
99    #[doc = "`get_input()` overload"]
100    fn get_input(self) -> crate::unity_engine::event_systems::baseinput::BaseInput {
101        unsafe {
102            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            ::unity::il2cpp_call!((::unity::module_base()+0x317a540usize)as*mut u8,crate::unity_engine::event_systems::baseinput::BaseInput;
104(BaseInputModule)__receiver)
105        }
106    }
107    #[doc = "`get_inputOverride()` overload"]
108    fn get_input_override(self) -> crate::unity_engine::event_systems::baseinput::BaseInput {
109        unsafe {
110            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x317a7a0usize)as*mut u8,crate::unity_engine::event_systems::baseinput::BaseInput;
112(BaseInputModule)__receiver)
113        }
114    }
115    #[doc = "`set_inputOverride(crate::unity_engine::event_systems::baseinput::BaseInput)` overload"]
116    fn set_input_override(self, value: impl ::core::convert::Into<crate::unity_engine::event_systems::baseinput::BaseInput>) -> () {
117        unsafe {
118            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x317a7b0usize)as*mut u8,();
120(BaseInputModule)__receiver,(crate::unity_engine::event_systems::baseinput::BaseInput)::core::convert::Into::into(value))
121        }
122    }
123    #[doc = "`get_eventSystem()` overload"]
124    fn get_event_system(self) -> crate::unity_engine::event_systems::eventsystem::EventSystem {
125        unsafe {
126            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x317a7c0usize)as*mut u8,crate::unity_engine::event_systems::eventsystem::EventSystem;
128(BaseInputModule)__receiver)
129        }
130    }
131    #[doc = "`OnEnable()` overload"]
132    fn on_enable(self) -> () {
133        unsafe {
134            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            {
136                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
137                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
138                    panic!(
139                        "unity: virtual slot {}
140 out of range (vtable len {}
141) on the runtime class behind {}
142 (method `{}
143`)",
144                        5usize,
145                        __vt.len(),
146                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
147                        "OnEnable",
148                    )
149                });
150                let __inner: extern "C" fn(BaseInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
151                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
152                __inner(__receiver, __mi)
153            }
154        }
155    }
156    #[doc = "`OnDisable()` overload"]
157    fn on_disable(self) -> () {
158        unsafe {
159            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            {
161                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
162                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
163                    panic!(
164                        "unity: virtual slot {}
165 out of range (vtable len {}
166) on the runtime class behind {}
167 (method `{}
168`)",
169                        7usize,
170                        __vt.len(),
171                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
172                        "OnDisable",
173                    )
174                });
175                let __inner: extern "C" fn(BaseInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
176                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177                __inner(__receiver, __mi)
178            }
179        }
180    }
181    #[doc = "`Process()` overload"]
182    fn process(self) -> () {
183        unsafe {
184            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            {
186                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
187                let __vi = *__vt.get(17usize).unwrap_or_else(|| {
188                    panic!(
189                        "unity: virtual slot {}
190 out of range (vtable len {}
191) on the runtime class behind {}
192 (method `{}
193`)",
194                        17usize,
195                        __vt.len(),
196                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
197                        "Process",
198                    )
199                });
200                let __inner: extern "C" fn(BaseInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
201                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
202                __inner(__receiver, __mi)
203            }
204        }
205    }
206    #[doc = "`HandlePointerExitAndEnter(crate::unity_engine::event_systems::pointereventdata::PointerEventData, crate::unity_engine::gameobject::GameObject)` overload"]
207    fn handle_pointer_exit_and_enter(
208        self,
209        current_pointer_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
210        new_enter_target: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
211    ) -> () {
212        unsafe {
213            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x317ae20usize)as*mut u8,();
215(BaseInputModule)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(current_pointer_data),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(new_enter_target))
216        }
217    }
218    #[doc = "`GetAxisEventData(f32, f32, f32)` overload"]
219    fn get_axis_event_data(
220        self,
221        x: impl ::core::convert::Into<f32>,
222        y: impl ::core::convert::Into<f32>,
223        move_dead_zone: impl ::core::convert::Into<f32>,
224    ) -> crate::unity_engine::event_systems::axiseventdata::AxisEventData {
225        unsafe {
226            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            {
228                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
229                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
230                    panic!(
231                        "unity: virtual slot {}
232 out of range (vtable len {}
233) on the runtime class behind {}
234 (method `{}
235`)",
236                        18usize,
237                        __vt.len(),
238                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
239                        "GetAxisEventData",
240                    )
241                });
242                let __inner: extern "C" fn(
243                    BaseInputModule,
244                    f32,
245                    f32,
246                    f32,
247                    ::unity::OptionalMethod,
248                ) -> crate::unity_engine::event_systems::axiseventdata::AxisEventData = ::core::mem::transmute(__vi.method_ptr);
249                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
250                __inner(
251                    __receiver,
252                    ::core::convert::Into::into(x),
253                    ::core::convert::Into::into(y),
254                    ::core::convert::Into::into(move_dead_zone),
255                    __mi,
256                )
257            }
258        }
259    }
260    #[doc = "`GetBaseEventData()` overload"]
261    fn get_base_event_data(self) -> crate::unity_engine::event_systems::baseeventdata::BaseEventData {
262        unsafe {
263            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264            {
265                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
266                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
267                    panic!(
268                        "unity: virtual slot {}
269 out of range (vtable len {}
270) on the runtime class behind {}
271 (method `{}
272`)",
273                        19usize,
274                        __vt.len(),
275                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
276                        "GetBaseEventData",
277                    )
278                });
279                let __inner: extern "C" fn(
280                    BaseInputModule,
281                    ::unity::OptionalMethod,
282                ) -> crate::unity_engine::event_systems::baseeventdata::BaseEventData = ::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 = "`IsPointerOverGameObject(i32)` overload"]
289    fn is_pointer_over_game_object(self, pointer_id: impl ::core::convert::Into<i32>) -> bool {
290        unsafe {
291            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292            {
293                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
294                let __vi = *__vt.get(20usize).unwrap_or_else(|| {
295                    panic!(
296                        "unity: virtual slot {}
297 out of range (vtable len {}
298) on the runtime class behind {}
299 (method `{}
300`)",
301                        20usize,
302                        __vt.len(),
303                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
304                        "IsPointerOverGameObject",
305                    )
306                });
307                let __inner: extern "C" fn(BaseInputModule, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
308                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
309                __inner(__receiver, ::core::convert::Into::into(pointer_id), __mi)
310            }
311        }
312    }
313    #[doc = "`ShouldActivateModule()` overload"]
314    fn should_activate_module(self) -> bool {
315        unsafe {
316            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
317            {
318                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
319                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
320                    panic!(
321                        "unity: virtual slot {}
322 out of range (vtable len {}
323) on the runtime class behind {}
324 (method `{}
325`)",
326                        21usize,
327                        __vt.len(),
328                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
329                        "ShouldActivateModule",
330                    )
331                });
332                let __inner: extern "C" fn(BaseInputModule, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
333                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
334                __inner(__receiver, __mi)
335            }
336        }
337    }
338    #[doc = "`DeactivateModule()` overload"]
339    fn deactivate_module(self) -> () {
340        unsafe {
341            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342            {
343                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
344                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
345                    panic!(
346                        "unity: virtual slot {}
347 out of range (vtable len {}
348) on the runtime class behind {}
349 (method `{}
350`)",
351                        22usize,
352                        __vt.len(),
353                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
354                        "DeactivateModule",
355                    )
356                });
357                let __inner: extern "C" fn(BaseInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
358                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
359                __inner(__receiver, __mi)
360            }
361        }
362    }
363    #[doc = "`ActivateModule()` overload"]
364    fn activate_module(self) -> () {
365        unsafe {
366            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
367            {
368                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
369                let __vi = *__vt.get(23usize).unwrap_or_else(|| {
370                    panic!(
371                        "unity: virtual slot {}
372 out of range (vtable len {}
373) on the runtime class behind {}
374 (method `{}
375`)",
376                        23usize,
377                        __vt.len(),
378                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
379                        "ActivateModule",
380                    )
381                });
382                let __inner: extern "C" fn(BaseInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
383                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
384                __inner(__receiver, __mi)
385            }
386        }
387    }
388    #[doc = "`UpdateModule()` overload"]
389    fn update_module(self) -> () {
390        unsafe {
391            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
392            {
393                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
394                let __vi = *__vt.get(24usize).unwrap_or_else(|| {
395                    panic!(
396                        "unity: virtual slot {}
397 out of range (vtable len {}
398) on the runtime class behind {}
399 (method `{}
400`)",
401                        24usize,
402                        __vt.len(),
403                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
404                        "UpdateModule",
405                    )
406                });
407                let __inner: extern "C" fn(BaseInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
408                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
409                __inner(__receiver, __mi)
410            }
411        }
412    }
413    #[doc = "`IsModuleSupported()` overload"]
414    fn is_module_supported(self) -> bool {
415        unsafe {
416            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
417            {
418                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
419                let __vi = *__vt.get(25usize).unwrap_or_else(|| {
420                    panic!(
421                        "unity: virtual slot {}
422 out of range (vtable len {}
423) on the runtime class behind {}
424 (method `{}
425`)",
426                        25usize,
427                        __vt.len(),
428                        <BaseInputModule as ::unity::ClassIdentity>::NAME,
429                        "IsModuleSupported",
430                    )
431                });
432                let __inner: extern "C" fn(BaseInputModule, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
433                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
434                __inner(__receiver, __mi)
435            }
436        }
437    }
438    #[doc = "`.ctor()` overload"]
439    fn ctor(self) -> () {
440        unsafe {
441            let __receiver = <BaseInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
442            ::unity::il2cpp_call!((::unity::module_base()+0x317b710usize)as*mut u8,();
443(BaseInputModule)__receiver)
444        }
445    }
446}
447
448#[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
449impl<__T: IBaseInputModule> IBaseInputModuleMethods for __T {}
450
451#[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
452impl BaseInputModule {
453    pub fn get_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
455    }
456
457    pub fn get_input_override_method_info() -> &'static ::unity::il2cpp::MethodInfo {
458        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
459    }
460
461    pub fn set_input_override_method_info() -> &'static ::unity::il2cpp::MethodInfo {
462        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
463    }
464
465    pub fn get_event_system_method_info() -> &'static ::unity::il2cpp::MethodInfo {
466        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
467    }
468
469    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
470        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
471    }
472
473    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
474        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
475    }
476
477    pub fn process_method_info() -> &'static ::unity::il2cpp::MethodInfo {
478        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
479    }
480
481    pub fn find_first_raycast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
482        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
483    }
484
485    pub fn determine_move_direction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
486        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
487    }
488
489    pub fn determine_move_direction_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
491    }
492
493    pub fn find_common_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
495    }
496
497    pub fn handle_pointer_exit_and_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
498        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
499    }
500
501    pub fn get_axis_event_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
503    }
504
505    pub fn get_base_event_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
507    }
508
509    pub fn is_pointer_over_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
511    }
512
513    pub fn should_activate_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
515    }
516
517    pub fn deactivate_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
519    }
520
521    pub fn activate_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
523    }
524
525    pub fn update_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
527    }
528
529    pub fn is_module_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
531    }
532
533    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
535    }
536}
537
538#[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
539impl BaseInputModule {
540    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
541    pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
542        let __mi = Self::on_enable_method_info();
543        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
544        __inner(this.into(), ::core::option::Option::None)
545    }
546
547    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
548    pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
549        let __mi = Self::on_disable_method_info();
550        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
551        __inner(this.into(), ::core::option::Option::None)
552    }
553
554    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `Process`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
555    pub unsafe fn process(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
556        let __mi = Self::process_method_info();
557        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
558        __inner(this.into(), ::core::option::Option::None)
559    }
560
561    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `GetAxisEventData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
562    pub unsafe fn get_axis_event_data(
563        this: impl ::core::convert::Into<::unity::IlInstance>,
564        x: f32,
565        y: f32,
566        move_dead_zone: f32,
567    ) -> crate::unity_engine::event_systems::axiseventdata::AxisEventData {
568        let __mi = Self::get_axis_event_data_method_info();
569        let __inner: extern "C" fn(
570            ::unity::IlInstance,
571            f32,
572            f32,
573            f32,
574            ::unity::OptionalMethod,
575        ) -> crate::unity_engine::event_systems::axiseventdata::AxisEventData = ::core::mem::transmute(__mi.method_ptr);
576        __inner(this.into(), x, y, move_dead_zone, ::core::option::Option::None)
577    }
578
579    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `GetBaseEventData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
580    pub unsafe fn get_base_event_data(
581        this: impl ::core::convert::Into<::unity::IlInstance>,
582    ) -> crate::unity_engine::event_systems::baseeventdata::BaseEventData {
583        let __mi = Self::get_base_event_data_method_info();
584        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::event_systems::baseeventdata::BaseEventData =
585            ::core::mem::transmute(__mi.method_ptr);
586        __inner(this.into(), ::core::option::Option::None)
587    }
588
589    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `IsPointerOverGameObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
590    pub unsafe fn is_pointer_over_game_object(this: impl ::core::convert::Into<::unity::IlInstance>, pointer_id: i32) -> bool {
591        let __mi = Self::is_pointer_over_game_object_method_info();
592        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
593        __inner(this.into(), pointer_id, ::core::option::Option::None)
594    }
595
596    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `ShouldActivateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
597    pub unsafe fn should_activate_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
598        let __mi = Self::should_activate_module_method_info();
599        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
600        __inner(this.into(), ::core::option::Option::None)
601    }
602
603    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `DeactivateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
604    pub unsafe fn deactivate_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
605        let __mi = Self::deactivate_module_method_info();
606        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
607        __inner(this.into(), ::core::option::Option::None)
608    }
609
610    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `ActivateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
611    pub unsafe fn activate_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
612        let __mi = Self::activate_module_method_info();
613        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
614        __inner(this.into(), ::core::option::Option::None)
615    }
616
617    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `UpdateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
618    pub unsafe fn update_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
619        let __mi = Self::update_module_method_info();
620        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
621        __inner(this.into(), ::core::option::Option::None)
622    }
623
624    #[doc = "Direct (non-virtual) call to `BaseInputModule`'s own `IsModuleSupported`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
625    pub unsafe fn is_module_supported(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
626        let __mi = Self::is_module_supported_method_info();
627        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
628        __inner(this.into(), ::core::option::Option::None)
629    }
630}
631
632#[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
633impl BaseInputModule {
634    #[doc = "`.ctor()` — no args"]
635    pub fn new() -> Self {
636        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
637            panic!(
638                "{}
639::{}
640 failed to instantiate",
641                ::core::stringify!(BaseInputModule),
642                ::core::stringify!(new),
643            )
644        });
645        <Self as IBaseInputModuleMethods>::ctor(this);
646        this
647    }
648}
649
650#[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
651#[doc(hidden)]
652pub mod prelude {
653    pub use super::{BaseInputModule, IBaseInputModule, IBaseInputModuleMethods};
654    #[cfg(feature = "system-object")]
655    pub use crate::system::object::IObjectMethods;
656    #[cfg(feature = "unity_engine-behaviour")]
657    pub use crate::unity_engine::behaviour::IBehaviourMethods;
658    #[cfg(feature = "unity_engine-component")]
659    pub use crate::unity_engine::component::IComponentMethods;
660    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
661    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
662    #[cfg(feature = "unity_engine-monobehaviour")]
663    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
664    #[cfg(feature = "unity_engine-object_2")]
665    pub use crate::unity_engine::object_2::IObject_2Methods;
666    pub use crate::{
667        system::object::IObject,
668        unity_engine::{
669            behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
670            object_2::IObject_2,
671        },
672    };
673}