1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EStreamControlMessage {
6 AuthenticationRequest = 1,
7 AuthenticationResponse = 2,
8 NegotiationInit = 3,
9 NegotiationSetConfig = 4,
10 NegotiationComplete = 5,
11 ClientHandshake = 6,
12 ServerHandshake = 7,
13 StartNetworkTest = 8,
14 KeepAlive = 9,
15 LAST_SETUP_MESSAGE = 15,
16 StartAudioData = 50,
17 StopAudioData = 51,
18 StartVideoData = 52,
19 StopVideoData = 53,
20 InputMouseMotion = 54,
21 InputMouseWheel = 55,
22 InputMouseDown = 56,
23 InputMouseUp = 57,
24 InputKeyDown = 58,
25 InputKeyUp = 59,
26 OBSOLETE_60 = 60,
27 OBSOLETE_61 = 61,
28 OBSOLETE_62 = 62,
29 ShowCursor = 63,
30 HideCursor = 64,
31 SetCursor = 65,
32 GetCursorImage = 66,
33 SetCursorImage = 67,
34 DeleteCursor = 68,
35 SetTargetFramerate = 69,
36 InputLatencyTest = 70,
37 OBSOLETE_71 = 71,
38 OverlayEnabled = 74,
39 OBSOLETE_75 = 75,
40 OBSOLETE_76 = 76,
41 OBSOLETE_77 = 77,
42 OBSOLETE_78 = 78,
43 VideoDecoderInfo = 80,
44 SetTitle = 81,
45 SetIcon = 82,
46 QuitRequest = 83,
47 SetQoS = 87,
48 OBSOLETE_88 = 88,
49 SetGammaRamp = 89,
50 VideoEncoderInfo = 90,
51 OBSOLETE_93 = 93,
52 SetTargetBitrate = 94,
53 OBSOLETE_95 = 95,
54 OBSOLETE_96 = 96,
55 OBSOLETE_97 = 97,
56 SetActivity = 98,
57 SetStreamingClientConfig = 99,
58 SystemSuspend = 100,
59 OBSOLETE_101 = 101,
60 VirtualHereRequest = 102,
61 VirtualHereReady = 103,
62 VirtualHereShareDevice = 104,
63 SetSpectatorMode = 105,
64 RemoteHID = 106,
65 StartMicrophoneData = 107,
66 StopMicrophoneData = 108,
67 InputText = 109,
68 TouchConfigActive = 110,
69 GetTouchConfigData = 111,
70 SetTouchConfigData = 112,
71 SaveTouchConfigLayout = 113,
72 TouchActionSetActive = 114,
73 GetTouchIconData = 115,
74 SetTouchIconData = 116,
75 InputTouchFingerDown = 117,
76 InputTouchFingerMotion = 118,
77 InputTouchFingerUp = 119,
78 SetCaptureSize = 120,
79 SetFlashState = 121,
80 Pause = 122,
81 Resume = 123,
82 EnableHighResCapture = 124,
83 DisableHighResCapture = 125,
84 ToggleMagnification = 126,
85 SetCapslock = 127,
86 SetKeymap = 128,
87 StopRequest = 129,
88 TouchActionSetLayerAdded = 130,
89 TouchActionSetLayerRemoved = 131,
90 RemotePlayTogetherGroupUpdate = 132,
91 SetInputTemporarilyDisabled = 133,
92 SetQualityOverride = 134,
93 SetBitrateOverride = 135,
94 ShowOnScreenKeyboard = 136,
95 ControllerConfigMsg = 137,
96 ControllerPersonalizationUpdate = 138,
97 OBSOLETE_139 = 139,
98 OBSOLETE_140 = 140,
99 OBSOLETE_141 = 141,
100 OBSOLETE_142 = 142,
101 PauseControllerInput = 143,
102 ResumeControllerInput = 144,
103 VRConnectionReady = 145,
104 SetCursorScale = 146,
105}
106
107impl EStreamControlMessage {
108 pub fn from_i32(val: i32) -> Option<Self> {
109 match val {
110 x if x == Self::AuthenticationRequest as i32 => Some(Self::AuthenticationRequest),
111 x if x == Self::AuthenticationResponse as i32 => Some(Self::AuthenticationResponse),
112 x if x == Self::NegotiationInit as i32 => Some(Self::NegotiationInit),
113 x if x == Self::NegotiationSetConfig as i32 => Some(Self::NegotiationSetConfig),
114 x if x == Self::NegotiationComplete as i32 => Some(Self::NegotiationComplete),
115 x if x == Self::ClientHandshake as i32 => Some(Self::ClientHandshake),
116 x if x == Self::ServerHandshake as i32 => Some(Self::ServerHandshake),
117 x if x == Self::StartNetworkTest as i32 => Some(Self::StartNetworkTest),
118 x if x == Self::KeepAlive as i32 => Some(Self::KeepAlive),
119 x if x == Self::LAST_SETUP_MESSAGE as i32 => Some(Self::LAST_SETUP_MESSAGE),
120 x if x == Self::StartAudioData as i32 => Some(Self::StartAudioData),
121 x if x == Self::StopAudioData as i32 => Some(Self::StopAudioData),
122 x if x == Self::StartVideoData as i32 => Some(Self::StartVideoData),
123 x if x == Self::StopVideoData as i32 => Some(Self::StopVideoData),
124 x if x == Self::InputMouseMotion as i32 => Some(Self::InputMouseMotion),
125 x if x == Self::InputMouseWheel as i32 => Some(Self::InputMouseWheel),
126 x if x == Self::InputMouseDown as i32 => Some(Self::InputMouseDown),
127 x if x == Self::InputMouseUp as i32 => Some(Self::InputMouseUp),
128 x if x == Self::InputKeyDown as i32 => Some(Self::InputKeyDown),
129 x if x == Self::InputKeyUp as i32 => Some(Self::InputKeyUp),
130 x if x == Self::OBSOLETE_60 as i32 => Some(Self::OBSOLETE_60),
131 x if x == Self::OBSOLETE_61 as i32 => Some(Self::OBSOLETE_61),
132 x if x == Self::OBSOLETE_62 as i32 => Some(Self::OBSOLETE_62),
133 x if x == Self::ShowCursor as i32 => Some(Self::ShowCursor),
134 x if x == Self::HideCursor as i32 => Some(Self::HideCursor),
135 x if x == Self::SetCursor as i32 => Some(Self::SetCursor),
136 x if x == Self::GetCursorImage as i32 => Some(Self::GetCursorImage),
137 x if x == Self::SetCursorImage as i32 => Some(Self::SetCursorImage),
138 x if x == Self::DeleteCursor as i32 => Some(Self::DeleteCursor),
139 x if x == Self::SetTargetFramerate as i32 => Some(Self::SetTargetFramerate),
140 x if x == Self::InputLatencyTest as i32 => Some(Self::InputLatencyTest),
141 x if x == Self::OBSOLETE_71 as i32 => Some(Self::OBSOLETE_71),
142 x if x == Self::OverlayEnabled as i32 => Some(Self::OverlayEnabled),
143 x if x == Self::OBSOLETE_75 as i32 => Some(Self::OBSOLETE_75),
144 x if x == Self::OBSOLETE_76 as i32 => Some(Self::OBSOLETE_76),
145 x if x == Self::OBSOLETE_77 as i32 => Some(Self::OBSOLETE_77),
146 x if x == Self::OBSOLETE_78 as i32 => Some(Self::OBSOLETE_78),
147 x if x == Self::VideoDecoderInfo as i32 => Some(Self::VideoDecoderInfo),
148 x if x == Self::SetTitle as i32 => Some(Self::SetTitle),
149 x if x == Self::SetIcon as i32 => Some(Self::SetIcon),
150 x if x == Self::QuitRequest as i32 => Some(Self::QuitRequest),
151 x if x == Self::SetQoS as i32 => Some(Self::SetQoS),
152 x if x == Self::OBSOLETE_88 as i32 => Some(Self::OBSOLETE_88),
153 x if x == Self::SetGammaRamp as i32 => Some(Self::SetGammaRamp),
154 x if x == Self::VideoEncoderInfo as i32 => Some(Self::VideoEncoderInfo),
155 x if x == Self::OBSOLETE_93 as i32 => Some(Self::OBSOLETE_93),
156 x if x == Self::SetTargetBitrate as i32 => Some(Self::SetTargetBitrate),
157 x if x == Self::OBSOLETE_95 as i32 => Some(Self::OBSOLETE_95),
158 x if x == Self::OBSOLETE_96 as i32 => Some(Self::OBSOLETE_96),
159 x if x == Self::OBSOLETE_97 as i32 => Some(Self::OBSOLETE_97),
160 x if x == Self::SetActivity as i32 => Some(Self::SetActivity),
161 x if x == Self::SetStreamingClientConfig as i32 => Some(Self::SetStreamingClientConfig),
162 x if x == Self::SystemSuspend as i32 => Some(Self::SystemSuspend),
163 x if x == Self::OBSOLETE_101 as i32 => Some(Self::OBSOLETE_101),
164 x if x == Self::VirtualHereRequest as i32 => Some(Self::VirtualHereRequest),
165 x if x == Self::VirtualHereReady as i32 => Some(Self::VirtualHereReady),
166 x if x == Self::VirtualHereShareDevice as i32 => Some(Self::VirtualHereShareDevice),
167 x if x == Self::SetSpectatorMode as i32 => Some(Self::SetSpectatorMode),
168 x if x == Self::RemoteHID as i32 => Some(Self::RemoteHID),
169 x if x == Self::StartMicrophoneData as i32 => Some(Self::StartMicrophoneData),
170 x if x == Self::StopMicrophoneData as i32 => Some(Self::StopMicrophoneData),
171 x if x == Self::InputText as i32 => Some(Self::InputText),
172 x if x == Self::TouchConfigActive as i32 => Some(Self::TouchConfigActive),
173 x if x == Self::GetTouchConfigData as i32 => Some(Self::GetTouchConfigData),
174 x if x == Self::SetTouchConfigData as i32 => Some(Self::SetTouchConfigData),
175 x if x == Self::SaveTouchConfigLayout as i32 => Some(Self::SaveTouchConfigLayout),
176 x if x == Self::TouchActionSetActive as i32 => Some(Self::TouchActionSetActive),
177 x if x == Self::GetTouchIconData as i32 => Some(Self::GetTouchIconData),
178 x if x == Self::SetTouchIconData as i32 => Some(Self::SetTouchIconData),
179 x if x == Self::InputTouchFingerDown as i32 => Some(Self::InputTouchFingerDown),
180 x if x == Self::InputTouchFingerMotion as i32 => Some(Self::InputTouchFingerMotion),
181 x if x == Self::InputTouchFingerUp as i32 => Some(Self::InputTouchFingerUp),
182 x if x == Self::SetCaptureSize as i32 => Some(Self::SetCaptureSize),
183 x if x == Self::SetFlashState as i32 => Some(Self::SetFlashState),
184 x if x == Self::Pause as i32 => Some(Self::Pause),
185 x if x == Self::Resume as i32 => Some(Self::Resume),
186 x if x == Self::EnableHighResCapture as i32 => Some(Self::EnableHighResCapture),
187 x if x == Self::DisableHighResCapture as i32 => Some(Self::DisableHighResCapture),
188 x if x == Self::ToggleMagnification as i32 => Some(Self::ToggleMagnification),
189 x if x == Self::SetCapslock as i32 => Some(Self::SetCapslock),
190 x if x == Self::SetKeymap as i32 => Some(Self::SetKeymap),
191 x if x == Self::StopRequest as i32 => Some(Self::StopRequest),
192 x if x == Self::TouchActionSetLayerAdded as i32 => Some(Self::TouchActionSetLayerAdded),
193 x if x == Self::TouchActionSetLayerRemoved as i32 => Some(Self::TouchActionSetLayerRemoved),
194 x if x == Self::RemotePlayTogetherGroupUpdate as i32 => Some(Self::RemotePlayTogetherGroupUpdate),
195 x if x == Self::SetInputTemporarilyDisabled as i32 => Some(Self::SetInputTemporarilyDisabled),
196 x if x == Self::SetQualityOverride as i32 => Some(Self::SetQualityOverride),
197 x if x == Self::SetBitrateOverride as i32 => Some(Self::SetBitrateOverride),
198 x if x == Self::ShowOnScreenKeyboard as i32 => Some(Self::ShowOnScreenKeyboard),
199 x if x == Self::ControllerConfigMsg as i32 => Some(Self::ControllerConfigMsg),
200 x if x == Self::ControllerPersonalizationUpdate as i32 => Some(Self::ControllerPersonalizationUpdate),
201 x if x == Self::OBSOLETE_139 as i32 => Some(Self::OBSOLETE_139),
202 x if x == Self::OBSOLETE_140 as i32 => Some(Self::OBSOLETE_140),
203 x if x == Self::OBSOLETE_141 as i32 => Some(Self::OBSOLETE_141),
204 x if x == Self::OBSOLETE_142 as i32 => Some(Self::OBSOLETE_142),
205 x if x == Self::PauseControllerInput as i32 => Some(Self::PauseControllerInput),
206 x if x == Self::ResumeControllerInput as i32 => Some(Self::ResumeControllerInput),
207 x if x == Self::VRConnectionReady as i32 => Some(Self::VRConnectionReady),
208 x if x == Self::SetCursorScale as i32 => Some(Self::SetCursorScale),
209 _ => None,
210 }
211 }
212}