Skip to main content

engage/generated/unity_engine/event_systems/
baseinput.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-event_systems-baseinput-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/baseinput/BaseInput.md"))]
20    #[::unity::class(namespace = "UnityEngine.EventSystems", name = "BaseInput")]
21    #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
22    pub struct BaseInput {}
23}
24
25#[cfg(feature = "unity_engine-event_systems-baseinput-types")]
26pub use __types::*;
27
28#[cfg(feature = "unity_engine-event_systems-baseinput")]
29pub trait IBaseInputMethods: IBaseInput {
30    #[doc = "`get_compositionString()` overload"]
31    fn get_composition_string(self) -> ::unity::Il2CppString {
32        unsafe {
33            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
34            {
35                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
36                let __vi = *__vt.get(17usize).unwrap_or_else(|| {
37                    panic!(
38                        "unity: virtual slot {}
39 out of range (vtable len {}
40) on the runtime class behind {}
41 (method `{}
42`)",
43                        17usize,
44                        __vt.len(),
45                        <BaseInput as ::unity::ClassIdentity>::NAME,
46                        "get_compositionString",
47                    )
48                });
49                let __inner: extern "C" fn(BaseInput, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
50                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
51                __inner(__receiver, __mi)
52            }
53        }
54    }
55    #[doc = "`get_imeCompositionMode()` overload"]
56    fn get_ime_composition_mode(self) -> crate::unity_engine::imecompositionmode::IMECompositionMode {
57        unsafe {
58            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            {
60                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
62                    panic!(
63                        "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68                        18usize,
69                        __vt.len(),
70                        <BaseInput as ::unity::ClassIdentity>::NAME,
71                        "get_imeCompositionMode",
72                    )
73                });
74                let __inner: extern "C" fn(BaseInput, ::unity::OptionalMethod) -> crate::unity_engine::imecompositionmode::IMECompositionMode =
75                    ::core::mem::transmute(__vi.method_ptr);
76                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
77                __inner(__receiver, __mi)
78            }
79        }
80    }
81    #[doc = "`set_imeCompositionMode(crate::unity_engine::imecompositionmode::IMECompositionMode)` overload"]
82    fn set_ime_composition_mode(self, value: impl ::core::convert::Into<crate::unity_engine::imecompositionmode::IMECompositionMode>) -> () {
83        unsafe {
84            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            {
86                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
87                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
88                    panic!(
89                        "unity: virtual slot {}
90 out of range (vtable len {}
91) on the runtime class behind {}
92 (method `{}
93`)",
94                        19usize,
95                        __vt.len(),
96                        <BaseInput as ::unity::ClassIdentity>::NAME,
97                        "set_imeCompositionMode",
98                    )
99                });
100                let __inner: extern "C" fn(BaseInput, crate::unity_engine::imecompositionmode::IMECompositionMode, ::unity::OptionalMethod) -> () =
101                    ::core::mem::transmute(__vi.method_ptr);
102                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
103                __inner(__receiver, ::core::convert::Into::into(value), __mi)
104            }
105        }
106    }
107    #[doc = "`get_compositionCursorPos()` overload"]
108    fn get_composition_cursor_pos(self) -> crate::unity_engine::vector2::Vector2 {
109        unsafe {
110            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            {
112                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113                let __vi = *__vt.get(20usize).unwrap_or_else(|| {
114                    panic!(
115                        "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120                        20usize,
121                        __vt.len(),
122                        <BaseInput as ::unity::ClassIdentity>::NAME,
123                        "get_compositionCursorPos",
124                    )
125                });
126                let __inner: extern "C" fn(BaseInput, ::unity::OptionalMethod) -> crate::unity_engine::vector2::Vector2 =
127                    ::core::mem::transmute(__vi.method_ptr);
128                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
129                __inner(__receiver, __mi)
130            }
131        }
132    }
133    #[doc = "`set_compositionCursorPos(crate::unity_engine::vector2::Vector2)` overload"]
134    fn set_composition_cursor_pos(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
135        unsafe {
136            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            {
138                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
139                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
140                    panic!(
141                        "unity: virtual slot {}
142 out of range (vtable len {}
143) on the runtime class behind {}
144 (method `{}
145`)",
146                        21usize,
147                        __vt.len(),
148                        <BaseInput as ::unity::ClassIdentity>::NAME,
149                        "set_compositionCursorPos",
150                    )
151                });
152                let __inner: extern "C" fn(BaseInput, crate::unity_engine::vector2::Vector2, ::unity::OptionalMethod) -> () =
153                    ::core::mem::transmute(__vi.method_ptr);
154                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
155                __inner(__receiver, ::core::convert::Into::into(value), __mi)
156            }
157        }
158    }
159    #[doc = "`get_mousePresent()` overload"]
160    fn get_mouse_present(self) -> bool {
161        unsafe {
162            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            {
164                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
165                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
166                    panic!(
167                        "unity: virtual slot {}
168 out of range (vtable len {}
169) on the runtime class behind {}
170 (method `{}
171`)",
172                        22usize,
173                        __vt.len(),
174                        <BaseInput as ::unity::ClassIdentity>::NAME,
175                        "get_mousePresent",
176                    )
177                });
178                let __inner: extern "C" fn(BaseInput, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
179                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
180                __inner(__receiver, __mi)
181            }
182        }
183    }
184    #[doc = "`GetMouseButtonDown(i32)` overload"]
185    fn get_mouse_button_down(self, button: impl ::core::convert::Into<i32>) -> bool {
186        unsafe {
187            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188            {
189                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
190                let __vi = *__vt.get(23usize).unwrap_or_else(|| {
191                    panic!(
192                        "unity: virtual slot {}
193 out of range (vtable len {}
194) on the runtime class behind {}
195 (method `{}
196`)",
197                        23usize,
198                        __vt.len(),
199                        <BaseInput as ::unity::ClassIdentity>::NAME,
200                        "GetMouseButtonDown",
201                    )
202                });
203                let __inner: extern "C" fn(BaseInput, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
204                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
205                __inner(__receiver, ::core::convert::Into::into(button), __mi)
206            }
207        }
208    }
209    #[doc = "`GetMouseButtonUp(i32)` overload"]
210    fn get_mouse_button_up(self, button: impl ::core::convert::Into<i32>) -> bool {
211        unsafe {
212            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            {
214                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
215                let __vi = *__vt.get(24usize).unwrap_or_else(|| {
216                    panic!(
217                        "unity: virtual slot {}
218 out of range (vtable len {}
219) on the runtime class behind {}
220 (method `{}
221`)",
222                        24usize,
223                        __vt.len(),
224                        <BaseInput as ::unity::ClassIdentity>::NAME,
225                        "GetMouseButtonUp",
226                    )
227                });
228                let __inner: extern "C" fn(BaseInput, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
229                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
230                __inner(__receiver, ::core::convert::Into::into(button), __mi)
231            }
232        }
233    }
234    #[doc = "`GetMouseButton(i32)` overload"]
235    fn get_mouse_button(self, button: impl ::core::convert::Into<i32>) -> bool {
236        unsafe {
237            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            {
239                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
240                let __vi = *__vt.get(25usize).unwrap_or_else(|| {
241                    panic!(
242                        "unity: virtual slot {}
243 out of range (vtable len {}
244) on the runtime class behind {}
245 (method `{}
246`)",
247                        25usize,
248                        __vt.len(),
249                        <BaseInput as ::unity::ClassIdentity>::NAME,
250                        "GetMouseButton",
251                    )
252                });
253                let __inner: extern "C" fn(BaseInput, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
254                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
255                __inner(__receiver, ::core::convert::Into::into(button), __mi)
256            }
257        }
258    }
259    #[doc = "`get_mousePosition()` overload"]
260    fn get_mouse_position(self) -> crate::unity_engine::vector2::Vector2 {
261        unsafe {
262            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263            {
264                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
265                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
266                    panic!(
267                        "unity: virtual slot {}
268 out of range (vtable len {}
269) on the runtime class behind {}
270 (method `{}
271`)",
272                        26usize,
273                        __vt.len(),
274                        <BaseInput as ::unity::ClassIdentity>::NAME,
275                        "get_mousePosition",
276                    )
277                });
278                let __inner: extern "C" fn(BaseInput, ::unity::OptionalMethod) -> crate::unity_engine::vector2::Vector2 =
279                    ::core::mem::transmute(__vi.method_ptr);
280                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
281                __inner(__receiver, __mi)
282            }
283        }
284    }
285    #[doc = "`get_mouseScrollDelta()` overload"]
286    fn get_mouse_scroll_delta(self) -> crate::unity_engine::vector2::Vector2 {
287        unsafe {
288            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289            {
290                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
291                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
292                    panic!(
293                        "unity: virtual slot {}
294 out of range (vtable len {}
295) on the runtime class behind {}
296 (method `{}
297`)",
298                        27usize,
299                        __vt.len(),
300                        <BaseInput as ::unity::ClassIdentity>::NAME,
301                        "get_mouseScrollDelta",
302                    )
303                });
304                let __inner: extern "C" fn(BaseInput, ::unity::OptionalMethod) -> crate::unity_engine::vector2::Vector2 =
305                    ::core::mem::transmute(__vi.method_ptr);
306                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
307                __inner(__receiver, __mi)
308            }
309        }
310    }
311    #[doc = "`get_touchSupported()` overload"]
312    fn get_touch_supported(self) -> bool {
313        unsafe {
314            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315            {
316                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
317                let __vi = *__vt.get(28usize).unwrap_or_else(|| {
318                    panic!(
319                        "unity: virtual slot {}
320 out of range (vtable len {}
321) on the runtime class behind {}
322 (method `{}
323`)",
324                        28usize,
325                        __vt.len(),
326                        <BaseInput as ::unity::ClassIdentity>::NAME,
327                        "get_touchSupported",
328                    )
329                });
330                let __inner: extern "C" fn(BaseInput, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
331                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
332                __inner(__receiver, __mi)
333            }
334        }
335    }
336    #[doc = "`get_touchCount()` overload"]
337    fn get_touch_count(self) -> i32 {
338        unsafe {
339            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340            {
341                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
342                let __vi = *__vt.get(29usize).unwrap_or_else(|| {
343                    panic!(
344                        "unity: virtual slot {}
345 out of range (vtable len {}
346) on the runtime class behind {}
347 (method `{}
348`)",
349                        29usize,
350                        __vt.len(),
351                        <BaseInput as ::unity::ClassIdentity>::NAME,
352                        "get_touchCount",
353                    )
354                });
355                let __inner: extern "C" fn(BaseInput, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
356                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
357                __inner(__receiver, __mi)
358            }
359        }
360    }
361    #[doc = "`GetTouch(i32)` overload"]
362    fn get_touch(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::touch::Touch {
363        unsafe {
364            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
365            {
366                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
367                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
368                    panic!(
369                        "unity: virtual slot {}
370 out of range (vtable len {}
371) on the runtime class behind {}
372 (method `{}
373`)",
374                        30usize,
375                        __vt.len(),
376                        <BaseInput as ::unity::ClassIdentity>::NAME,
377                        "GetTouch",
378                    )
379                });
380                let __inner: extern "C" fn(BaseInput, i32, ::unity::OptionalMethod) -> crate::unity_engine::touch::Touch =
381                    ::core::mem::transmute(__vi.method_ptr);
382                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
383                __inner(__receiver, ::core::convert::Into::into(index), __mi)
384            }
385        }
386    }
387    #[doc = "`GetAxisRaw(::unity::Il2CppString)` overload"]
388    fn get_axis_raw(self, axis_name: impl ::core::convert::Into<::unity::Il2CppString>) -> f32 {
389        unsafe {
390            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
391            {
392                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
393                let __vi = *__vt.get(31usize).unwrap_or_else(|| {
394                    panic!(
395                        "unity: virtual slot {}
396 out of range (vtable len {}
397) on the runtime class behind {}
398 (method `{}
399`)",
400                        31usize,
401                        __vt.len(),
402                        <BaseInput as ::unity::ClassIdentity>::NAME,
403                        "GetAxisRaw",
404                    )
405                });
406                let __inner: extern "C" fn(BaseInput, ::unity::Il2CppString, ::unity::OptionalMethod) -> f32 =
407                    ::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, ::core::convert::Into::into(axis_name), __mi)
410            }
411        }
412    }
413    #[doc = "`GetButtonDown(::unity::Il2CppString)` overload"]
414    fn get_button_down(self, button_name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
415        unsafe {
416            let __receiver = <BaseInput 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(32usize).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                        32usize,
427                        __vt.len(),
428                        <BaseInput as ::unity::ClassIdentity>::NAME,
429                        "GetButtonDown",
430                    )
431                });
432                let __inner: extern "C" fn(BaseInput, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
433                    ::core::mem::transmute(__vi.method_ptr);
434                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
435                __inner(__receiver, ::core::convert::Into::into(button_name), __mi)
436            }
437        }
438    }
439    #[doc = "`.ctor()` overload"]
440    fn ctor(self) -> () {
441        unsafe {
442            let __receiver = <BaseInput as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
443            ::unity::il2cpp_call!((::unity::module_base()+0x317a530usize)as*mut u8,();
444(BaseInput)__receiver)
445        }
446    }
447}
448
449#[cfg(feature = "unity_engine-event_systems-baseinput")]
450impl<__T: IBaseInput> IBaseInputMethods for __T {}
451
452#[cfg(feature = "unity_engine-event_systems-baseinput")]
453impl BaseInput {
454    pub fn get_composition_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
456    }
457
458    pub fn get_ime_composition_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
460    }
461
462    pub fn set_ime_composition_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
464    }
465
466    pub fn get_composition_cursor_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
468    }
469
470    pub fn set_composition_cursor_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
472    }
473
474    pub fn get_mouse_present_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
476    }
477
478    pub fn get_mouse_button_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
480    }
481
482    pub fn get_mouse_button_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
483        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
484    }
485
486    pub fn get_mouse_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
488    }
489
490    pub fn get_mouse_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
492    }
493
494    pub fn get_mouse_scroll_delta_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
496    }
497
498    pub fn get_touch_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
500    }
501
502    pub fn get_touch_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
503        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
504    }
505
506    pub fn get_touch_method_info() -> &'static ::unity::il2cpp::MethodInfo {
507        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
508    }
509
510    pub fn get_axis_raw_method_info() -> &'static ::unity::il2cpp::MethodInfo {
511        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
512    }
513
514    pub fn get_button_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
516    }
517
518    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
519        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
520    }
521}
522
523#[cfg(feature = "unity_engine-event_systems-baseinput")]
524impl BaseInput {
525    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `get_compositionString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
526    pub unsafe fn get_composition_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
527        let __mi = Self::get_composition_string_method_info();
528        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
529        __inner(this.into(), ::core::option::Option::None)
530    }
531
532    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `get_imeCompositionMode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
533    pub unsafe fn get_ime_composition_mode(
534        this: impl ::core::convert::Into<::unity::IlInstance>,
535    ) -> crate::unity_engine::imecompositionmode::IMECompositionMode {
536        let __mi = Self::get_ime_composition_mode_method_info();
537        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::imecompositionmode::IMECompositionMode =
538            ::core::mem::transmute(__mi.method_ptr);
539        __inner(this.into(), ::core::option::Option::None)
540    }
541
542    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `set_imeCompositionMode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
543    pub unsafe fn set_ime_composition_mode(
544        this: impl ::core::convert::Into<::unity::IlInstance>,
545        value: crate::unity_engine::imecompositionmode::IMECompositionMode,
546    ) -> () {
547        let __mi = Self::set_ime_composition_mode_method_info();
548        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::imecompositionmode::IMECompositionMode, ::unity::OptionalMethod) -> () =
549            ::core::mem::transmute(__mi.method_ptr);
550        __inner(this.into(), value, ::core::option::Option::None)
551    }
552
553    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `get_compositionCursorPos`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
554    pub unsafe fn get_composition_cursor_pos(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::vector2::Vector2 {
555        let __mi = Self::get_composition_cursor_pos_method_info();
556        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::vector2::Vector2 =
557            ::core::mem::transmute(__mi.method_ptr);
558        __inner(this.into(), ::core::option::Option::None)
559    }
560
561    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `set_compositionCursorPos`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
562    pub unsafe fn set_composition_cursor_pos(
563        this: impl ::core::convert::Into<::unity::IlInstance>,
564        value: crate::unity_engine::vector2::Vector2,
565    ) -> () {
566        let __mi = Self::set_composition_cursor_pos_method_info();
567        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::vector2::Vector2, ::unity::OptionalMethod) -> () =
568            ::core::mem::transmute(__mi.method_ptr);
569        __inner(this.into(), value, ::core::option::Option::None)
570    }
571
572    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `get_mousePresent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
573    pub unsafe fn get_mouse_present(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
574        let __mi = Self::get_mouse_present_method_info();
575        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
576        __inner(this.into(), ::core::option::Option::None)
577    }
578
579    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `GetMouseButtonDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
580    pub unsafe fn get_mouse_button_down(this: impl ::core::convert::Into<::unity::IlInstance>, button: i32) -> bool {
581        let __mi = Self::get_mouse_button_down_method_info();
582        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
583        __inner(this.into(), button, ::core::option::Option::None)
584    }
585
586    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `GetMouseButtonUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
587    pub unsafe fn get_mouse_button_up(this: impl ::core::convert::Into<::unity::IlInstance>, button: i32) -> bool {
588        let __mi = Self::get_mouse_button_up_method_info();
589        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
590        __inner(this.into(), button, ::core::option::Option::None)
591    }
592
593    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `GetMouseButton`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
594    pub unsafe fn get_mouse_button(this: impl ::core::convert::Into<::unity::IlInstance>, button: i32) -> bool {
595        let __mi = Self::get_mouse_button_method_info();
596        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
597        __inner(this.into(), button, ::core::option::Option::None)
598    }
599
600    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `get_mousePosition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
601    pub unsafe fn get_mouse_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::vector2::Vector2 {
602        let __mi = Self::get_mouse_position_method_info();
603        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::vector2::Vector2 =
604            ::core::mem::transmute(__mi.method_ptr);
605        __inner(this.into(), ::core::option::Option::None)
606    }
607
608    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `get_mouseScrollDelta`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
609    pub unsafe fn get_mouse_scroll_delta(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::vector2::Vector2 {
610        let __mi = Self::get_mouse_scroll_delta_method_info();
611        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::vector2::Vector2 =
612            ::core::mem::transmute(__mi.method_ptr);
613        __inner(this.into(), ::core::option::Option::None)
614    }
615
616    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `get_touchSupported`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
617    pub unsafe fn get_touch_supported(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
618        let __mi = Self::get_touch_supported_method_info();
619        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
620        __inner(this.into(), ::core::option::Option::None)
621    }
622
623    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `get_touchCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
624    pub unsafe fn get_touch_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
625        let __mi = Self::get_touch_count_method_info();
626        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
627        __inner(this.into(), ::core::option::Option::None)
628    }
629
630    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `GetTouch`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
631    pub unsafe fn get_touch(this: impl ::core::convert::Into<::unity::IlInstance>, index: i32) -> crate::unity_engine::touch::Touch {
632        let __mi = Self::get_touch_method_info();
633        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> crate::unity_engine::touch::Touch =
634            ::core::mem::transmute(__mi.method_ptr);
635        __inner(this.into(), index, ::core::option::Option::None)
636    }
637
638    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `GetAxisRaw`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
639    pub unsafe fn get_axis_raw(this: impl ::core::convert::Into<::unity::IlInstance>, axis_name: ::unity::Il2CppString) -> f32 {
640        let __mi = Self::get_axis_raw_method_info();
641        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> f32 =
642            ::core::mem::transmute(__mi.method_ptr);
643        __inner(this.into(), axis_name, ::core::option::Option::None)
644    }
645
646    #[doc = "Direct (non-virtual) call to `BaseInput`'s own `GetButtonDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
647    pub unsafe fn get_button_down(this: impl ::core::convert::Into<::unity::IlInstance>, button_name: ::unity::Il2CppString) -> bool {
648        let __mi = Self::get_button_down_method_info();
649        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
650            ::core::mem::transmute(__mi.method_ptr);
651        __inner(this.into(), button_name, ::core::option::Option::None)
652    }
653}
654
655#[cfg(feature = "unity_engine-event_systems-baseinput")]
656impl BaseInput {
657    #[doc = "`.ctor()` — no args"]
658    pub fn new() -> Self {
659        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
660            panic!(
661                "{}
662::{}
663 failed to instantiate",
664                ::core::stringify!(BaseInput),
665                ::core::stringify!(new),
666            )
667        });
668        <Self as IBaseInputMethods>::ctor(this);
669        this
670    }
671}
672
673#[cfg(feature = "unity_engine-event_systems-baseinput")]
674#[doc(hidden)]
675pub mod prelude {
676    pub use super::{BaseInput, IBaseInput, IBaseInputMethods};
677    #[cfg(feature = "system-object")]
678    pub use crate::system::object::IObjectMethods;
679    #[cfg(feature = "unity_engine-behaviour")]
680    pub use crate::unity_engine::behaviour::IBehaviourMethods;
681    #[cfg(feature = "unity_engine-component")]
682    pub use crate::unity_engine::component::IComponentMethods;
683    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
684    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
685    #[cfg(feature = "unity_engine-monobehaviour")]
686    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
687    #[cfg(feature = "unity_engine-object_2")]
688    pub use crate::unity_engine::object_2::IObject_2Methods;
689    pub use crate::{
690        system::object::IObject,
691        unity_engine::{
692            behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
693            object_2::IObject_2,
694        },
695    };
696}