blob: 7abdf14b06d76e0bbe3031c8c8bd08917ffe9947 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
pub type ConditionForceEffect = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Gaming_Input_ForceFeedback\"`*"]
#[repr(transparent)]
pub struct ConditionForceEffectKind(pub i32);
impl ConditionForceEffectKind {
pub const Spring: Self = Self(0i32);
pub const Damper: Self = Self(1i32);
pub const Inertia: Self = Self(2i32);
pub const Friction: Self = Self(3i32);
}
impl ::core::marker::Copy for ConditionForceEffectKind {}
impl ::core::clone::Clone for ConditionForceEffectKind {
fn clone(&self) -> Self {
*self
}
}
pub type ConstantForceEffect = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Gaming_Input_ForceFeedback\"`*"]
#[repr(transparent)]
pub struct ForceFeedbackEffectAxes(pub u32);
impl ForceFeedbackEffectAxes {
pub const None: Self = Self(0u32);
pub const X: Self = Self(1u32);
pub const Y: Self = Self(2u32);
pub const Z: Self = Self(4u32);
}
impl ::core::marker::Copy for ForceFeedbackEffectAxes {}
impl ::core::clone::Clone for ForceFeedbackEffectAxes {
fn clone(&self) -> Self {
*self
}
}
#[doc = "*Required features: `\"Gaming_Input_ForceFeedback\"`*"]
#[repr(transparent)]
pub struct ForceFeedbackEffectState(pub i32);
impl ForceFeedbackEffectState {
pub const Stopped: Self = Self(0i32);
pub const Running: Self = Self(1i32);
pub const Paused: Self = Self(2i32);
pub const Faulted: Self = Self(3i32);
}
impl ::core::marker::Copy for ForceFeedbackEffectState {}
impl ::core::clone::Clone for ForceFeedbackEffectState {
fn clone(&self) -> Self {
*self
}
}
#[doc = "*Required features: `\"Gaming_Input_ForceFeedback\"`*"]
#[repr(transparent)]
pub struct ForceFeedbackLoadEffectResult(pub i32);
impl ForceFeedbackLoadEffectResult {
pub const Succeeded: Self = Self(0i32);
pub const EffectStorageFull: Self = Self(1i32);
pub const EffectNotSupported: Self = Self(2i32);
}
impl ::core::marker::Copy for ForceFeedbackLoadEffectResult {}
impl ::core::clone::Clone for ForceFeedbackLoadEffectResult {
fn clone(&self) -> Self {
*self
}
}
pub type ForceFeedbackMotor = *mut ::core::ffi::c_void;
pub type IForceFeedbackEffect = *mut ::core::ffi::c_void;
pub type PeriodicForceEffect = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Gaming_Input_ForceFeedback\"`*"]
#[repr(transparent)]
pub struct PeriodicForceEffectKind(pub i32);
impl PeriodicForceEffectKind {
pub const SquareWave: Self = Self(0i32);
pub const SineWave: Self = Self(1i32);
pub const TriangleWave: Self = Self(2i32);
pub const SawtoothWaveUp: Self = Self(3i32);
pub const SawtoothWaveDown: Self = Self(4i32);
}
impl ::core::marker::Copy for PeriodicForceEffectKind {}
impl ::core::clone::Clone for PeriodicForceEffectKind {
fn clone(&self) -> Self {
*self
}
}
pub type RampForceEffect = *mut ::core::ffi::c_void;
|