engage/generated/unity_engine/xr/
inputdevice.rs1#[cfg(feature = "unity_engine-xr-inputdevice-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/xr/inputdevice/InputDevice.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct InputDevice {
17 pub m_device_id: u64,
18 pub m_initialized: bool,
19 }
20 impl ::unity::ClassIdentity for InputDevice {
21 const NAME: &'static str = "InputDevice";
22 const NAMESPACE: &'static str = "UnityEngine.XR";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for InputDevice {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34}
35
36#[cfg(feature = "unity_engine-xr-inputdevice-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-xr-inputdevice")]
40impl InputDevice {
41 #[doc = "`.ctor(u64)` overload"]
42 pub fn ctor(&mut self, device_id: impl ::core::convert::Into<u64>) -> () {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x3f1e630usize)as*mut u8,();
45(*mut InputDevice)self as*mut InputDevice,(u64)::core::convert::Into::into(device_id))
46 }
47 }
48
49 #[doc = "`get_deviceId()` overload"]
50 pub fn get_device_id(&mut self) -> u64 {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x3f1e640usize)as*mut u8,u64;
53(*mut InputDevice)self as*mut InputDevice)
54 }
55 }
56
57 #[doc = "`Equals(crate::system::object::Object)` overload"]
58 pub fn equals(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
59 unsafe {
60 ::unity::il2cpp_call!((::unity::module_base()+0x3f1e660usize)as*mut u8,bool;
61(*mut InputDevice)self as*mut InputDevice,(crate::system::object::Object)::core::convert::Into::into(obj))
62 }
63 }
64
65 #[doc = "`Equals(crate::unity_engine::xr::inputdevice::InputDevice)` overload"]
66 pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::xr::inputdevice::InputDevice>) -> bool {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x3f1e710usize)as*mut u8,bool;
69(*mut InputDevice)self as*mut InputDevice,(crate::unity_engine::xr::inputdevice::InputDevice)::core::convert::Into::into(other))
70 }
71 }
72
73 #[doc = "`GetHashCode()` overload"]
74 pub fn get_hash_code(&mut self) -> i32 {
75 unsafe {
76 ::unity::il2cpp_call!((::unity::module_base()+0x3f1e740usize)as*mut u8,i32;
77(*mut InputDevice)self as*mut InputDevice)
78 }
79 }
80}
81
82#[cfg(feature = "unity_engine-xr-inputdevice")]
83impl InputDevice {
84 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
86 }
87
88 pub fn get_device_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
90 }
91
92 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
94 }
95
96 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
98 }
99
100 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
102 }
103}
104
105#[cfg(feature = "unity_engine-xr-inputdevice")]
106#[doc(hidden)]
107pub mod prelude {
108 pub use super::InputDevice;
109 #[cfg(feature = "system-object")]
110 pub use crate::system::object::IObjectMethods;
111 #[cfg(feature = "system-valuetype")]
112 pub use crate::system::valuetype::IValueTypeMethods;
113 pub use crate::system::{object::IObject, valuetype::IValueType};
114}