terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
InputDevice.cs
Go to the documentation of this file.
1using System;
6using UnityEngine;
7
8namespace InControl
9{
10 // Token: 0x0200002C RID: 44
11 public class InputDevice
12 {
13 // Token: 0x1700008B RID: 139
14 // (get) Token: 0x060001CD RID: 461 RVA: 0x00005984 File Offset: 0x00003B84
15 // (set) Token: 0x060001CE RID: 462 RVA: 0x00005998 File Offset: 0x00003B98
16 public string Name
17 {
19 get
20 {
21 return this.<Name>k__BackingField;
22 }
24 protected set
25 {
27 }
28 }
29
30 // Token: 0x1700008C RID: 140
31 // (get) Token: 0x060001CF RID: 463 RVA: 0x000059AC File Offset: 0x00003BAC
32 // (set) Token: 0x060001D0 RID: 464 RVA: 0x000059C0 File Offset: 0x00003BC0
33 public string Meta
34 {
36 get
37 {
38 return this.<Meta>k__BackingField;
39 }
41 protected set
42 {
44 }
45 }
46
47 // Token: 0x1700008D RID: 141
48 // (get) Token: 0x060001D1 RID: 465 RVA: 0x000059D4 File Offset: 0x00003BD4
49 // (set) Token: 0x060001D2 RID: 466 RVA: 0x000059E8 File Offset: 0x00003BE8
50 public int SortOrder
51 {
53 get
54 {
55 return this.<SortOrder>k__BackingField;
56 }
58 protected set
59 {
61 }
62 }
63
64 // Token: 0x1700008E RID: 142
65 // (get) Token: 0x060001D3 RID: 467 RVA: 0x000059FC File Offset: 0x00003BFC
66 // (set) Token: 0x060001D4 RID: 468 RVA: 0x00005A10 File Offset: 0x00003C10
68 {
70 get
71 {
72 return this.<DeviceClass>k__BackingField;
73 }
75 protected set
76 {
78 }
79 }
80
81 // Token: 0x1700008F RID: 143
82 // (get) Token: 0x060001D5 RID: 469 RVA: 0x00005A24 File Offset: 0x00003C24
83 // (set) Token: 0x060001D6 RID: 470 RVA: 0x00005A38 File Offset: 0x00003C38
85 {
87 get
88 {
89 return this.<DeviceStyle>k__BackingField;
90 }
92 protected set
93 {
95 }
96 }
97
98 // Token: 0x17000090 RID: 144
99 // (get) Token: 0x060001D7 RID: 471 RVA: 0x000025E1 File Offset: 0x000007E1
100 // (set) Token: 0x060001D8 RID: 472 RVA: 0x00005A4C File Offset: 0x00003C4C
101 public Guid GUID
102 {
104 get
105 {
106 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
107 }
109 private set
110 {
111 }
112 }
113
114 // Token: 0x17000091 RID: 145
115 // (get) Token: 0x060001D9 RID: 473 RVA: 0x00005A5C File Offset: 0x00003C5C
116 // (set) Token: 0x060001DA RID: 474 RVA: 0x00005A70 File Offset: 0x00003C70
118 {
120 get
121 {
122 return this.<LastInputTick>k__BackingField;
123 }
125 private set
126 {
128 }
129 }
130
131 // Token: 0x17000092 RID: 146
132 // (get) Token: 0x060001DB RID: 475 RVA: 0x00005A84 File Offset: 0x00003C84
133 // (set) Token: 0x060001DC RID: 476 RVA: 0x00005A98 File Offset: 0x00003C98
134 public bool IsActive
135 {
137 get
138 {
139 return this.<IsActive>k__BackingField;
140 }
142 private set
143 {
144 }
145 }
146
147 // Token: 0x17000093 RID: 147
148 // (get) Token: 0x060001DD RID: 477 RVA: 0x00005AA8 File Offset: 0x00003CA8
149 // (set) Token: 0x060001DE RID: 478 RVA: 0x00005ABC File Offset: 0x00003CBC
150 public bool IsAttached
151 {
153 get
154 {
155 return this.<IsAttached>k__BackingField;
156 }
158 private set
159 {
160 }
161 }
162
163 // Token: 0x17000094 RID: 148
164 // (get) Token: 0x060001DF RID: 479 RVA: 0x00005ACC File Offset: 0x00003CCC
165 // (set) Token: 0x060001E0 RID: 480 RVA: 0x00005AE0 File Offset: 0x00003CE0
166 private protected bool RawSticks
167 {
169 protected get
170 {
171 return this.<RawSticks>k__BackingField;
172 }
174 private set
175 {
176 }
177 }
178
179 // Token: 0x17000095 RID: 149
180 // (get) Token: 0x060001E1 RID: 481 RVA: 0x00005AF0 File Offset: 0x00003CF0
181 // (set) Token: 0x060001E2 RID: 482 RVA: 0x00005B04 File Offset: 0x00003D04
183 {
185 get
186 {
187 return this.<Controls>k__BackingField;
188 }
190 protected set
191 {
193 }
194 }
195
196 // Token: 0x17000096 RID: 150
197 // (get) Token: 0x060001E3 RID: 483 RVA: 0x00005B18 File Offset: 0x00003D18
198 // (set) Token: 0x060001E4 RID: 484 RVA: 0x00005B2C File Offset: 0x00003D2C
199 private protected InputControl[] ControlsByTarget
200 {
202 protected get
203 {
205 }
207 private set
208 {
210 }
211 }
212
213 // Token: 0x17000097 RID: 151
214 // (get) Token: 0x060001E5 RID: 485 RVA: 0x00005B40 File Offset: 0x00003D40
215 // (set) Token: 0x060001E6 RID: 486 RVA: 0x00005B54 File Offset: 0x00003D54
217 {
219 get
220 {
221 return this.<LeftStick>k__BackingField;
222 }
224 private set
225 {
227 }
228 }
229
230 // Token: 0x17000098 RID: 152
231 // (get) Token: 0x060001E7 RID: 487 RVA: 0x00005B68 File Offset: 0x00003D68
232 // (set) Token: 0x060001E8 RID: 488 RVA: 0x00005B7C File Offset: 0x00003D7C
234 {
236 get
237 {
238 return this.<RightStick>k__BackingField;
239 }
241 private set
242 {
244 }
245 }
246
247 // Token: 0x17000099 RID: 153
248 // (get) Token: 0x060001E9 RID: 489 RVA: 0x00005B90 File Offset: 0x00003D90
249 // (set) Token: 0x060001EA RID: 490 RVA: 0x00005BA4 File Offset: 0x00003DA4
251 {
253 get
254 {
255 return this.<DPad>k__BackingField;
256 }
258 private set
259 {
260 this.<DPad>k__BackingField = value;
261 }
262 }
263
264 // Token: 0x1700009A RID: 154
265 // (get) Token: 0x060001EB RID: 491 RVA: 0x00005BB8 File Offset: 0x00003DB8
266 // (set) Token: 0x060001EC RID: 492 RVA: 0x00005BCC File Offset: 0x00003DCC
268 {
270 get
271 {
272 return this.<AnalogSnapshot>k__BackingField;
273 }
275 set
276 {
278 }
279 }
280
281 // Token: 0x060001ED RID: 493 RVA: 0x00005BE0 File Offset: 0x00003DE0
282 public InputDevice()
283 {
284 }
285
286 // Token: 0x060001EE RID: 494 RVA: 0x00005BF0 File Offset: 0x00003DF0
287 public InputDevice(string name)
288 {
289 }
290
291 // Token: 0x060001EF RID: 495 RVA: 0x00005C00 File Offset: 0x00003E00
292 public InputDevice(string name, bool rawSticks)
293 {
294 this.<RawSticks>k__BackingField = true;
295 this.Name = name;
296 this.Meta = "";
297 Guid guid = Guid.NewGuid();
298 this.RemoveAliasControls();
299 }
300
301 // Token: 0x060001F0 RID: 496 RVA: 0x00005C3C File Offset: 0x00003E3C
302 internal void OnAttached()
303 {
304 this.<IsAttached>k__BackingField = true;
305 this.AddAliasControls();
306 }
307
308 // Token: 0x060001F1 RID: 497 RVA: 0x00005C58 File Offset: 0x00003E58
309 internal void OnDetached()
310 {
311 this.RemoveAliasControls();
312 }
313
314 // Token: 0x060001F2 RID: 498 RVA: 0x00005C6C File Offset: 0x00003E6C
315 protected void AddAliasControls()
316 {
317 this.RemoveAliasControls();
318 }
319
320 // Token: 0x060001F3 RID: 499 RVA: 0x00005C84 File Offset: 0x00003E84
321 private void RemoveAliasControls()
322 {
323 if (!true)
324 {
325 }
326 }
327
328 // Token: 0x060001F4 RID: 500 RVA: 0x000025E1 File Offset: 0x000007E1
329 protected void ClearControls()
330 {
331 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
332 }
333
334 // Token: 0x060001F5 RID: 501 RVA: 0x00005C94 File Offset: 0x00003E94
336 {
337 /*
338An exception occurred when decompiling this method (060001F5)
339
340ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.InputDevice::HasControl(InControl.InputControlType)
341
342 ---> System.Exception: Basic block has to end with unconditional control flow.
343{
344 Block_0:
345 stloc:float32(var_0_0B, ldfld:float32(OneAxisInputControl::upperDeadZone, ldfld:class InControl.InputControl[][exp:OneAxisInputControl](InputDevice::<ControlsByTarget>k__BackingField, ldloc:InputDevice(this))))
346}
347
348 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
349 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
350 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
351 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
352 --- End of inner exception stack trace ---
353 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
354 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
355*/;
356 }
357
358 // Token: 0x060001F6 RID: 502 RVA: 0x00005CAC File Offset: 0x00003EAC
360 {
361 /*
362An exception occurred when decompiling this method (060001F6)
363
364ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.InputControl InControl.InputDevice::GetControl(InControl.InputControlType)
365
366 ---> System.Exception: Basic block has to end with unconditional control flow.
367{
368 Block_0:
369 brtrue(IL_0000, ldloc:class InControl.InputControl[][exp:bool](var_0_06))
370}
371
372 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
373 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
374 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
375 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
376 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
377 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
378 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
379 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
380 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
381 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
382 --- End of inner exception stack trace ---
383 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
384 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
385*/;
386 }
387
388 // Token: 0x1700009B RID: 155
390 {
391 get
392 {
393 return this.GetControl(controlType);
394 }
395 }
396
397 // Token: 0x060001F8 RID: 504 RVA: 0x00005CE0 File Offset: 0x00003EE0
399 {
400 if (!true)
401 {
402 }
403 throw new InvalidCastException();
404 }
405
406 // Token: 0x060001F9 RID: 505 RVA: 0x00005CF8 File Offset: 0x00003EF8
408 {
409 if (!true)
410 {
411 }
413 return this.GetControl(inputControlTypeByName);
414 }
415
416 // Token: 0x060001FA RID: 506 RVA: 0x000025E1 File Offset: 0x000007E1
418 {
419 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
420 }
421
422 // Token: 0x060001FB RID: 507 RVA: 0x00005D18 File Offset: 0x00003F18
423 public InputControl AddControl(InputControlType controlType, string handle, float lowerDeadZone, float upperDeadZone)
424 {
425 return this.AddControl(controlType, handle);
426 }
427
428 // Token: 0x060001FC RID: 508 RVA: 0x00005D30 File Offset: 0x00003F30
430 {
431 if (this.<ControlsByTarget>k__BackingField.upperDeadZone != null)
432 {
434 return;
435 }
436 }
437
438 // Token: 0x060001FD RID: 509 RVA: 0x00005D54 File Offset: 0x00003F54
439 public void ClearInputState()
440 {
441 this.<LeftStick>k__BackingField.ClearInputState();
442 this.<RightStick>k__BackingField.ClearInputState();
443 this.<DPad>k__BackingField.ClearInputState();
445 if (this.<Controls>k__BackingField != null)
446 {
447 }
448 }
449
450 // Token: 0x060001FE RID: 510 RVA: 0x00005D9C File Offset: 0x00003F9C
451 protected void UpdateWithState(InputControlType controlType, bool state, ulong updateTick, float deltaTime)
452 {
453 InputControl control = this.GetControl(controlType);
454 if (!control.isNullControl)
455 {
456 control.PrepareForUpdate(updateTick);
458 return;
459 }
460 }
461
462 // Token: 0x060001FF RID: 511 RVA: 0x00005DD4 File Offset: 0x00003FD4
463 protected void UpdateWithValue(InputControlType controlType, float value, ulong updateTick, float deltaTime)
464 {
465 bool flag = this.GetControl(controlType).UpdateWithValue(value, updateTick, deltaTime);
466 }
467
468 // Token: 0x06000200 RID: 512 RVA: 0x00005DF4 File Offset: 0x00003FF4
469 public void UpdateLeftStickWithValue(Vector2 value, ulong updateTick, float deltaTime)
470 {
471 if (this.cachedLeftStickLeft == null)
472 {
473 InputControl control = this.GetControl(InputControlType.LeftStickLeft);
474 this.cachedLeftStickLeft = control;
475 }
476 if (this.cachedLeftStickRight == null)
477 {
478 InputControl control2 = this.GetControl(InputControlType.LeftStickRight);
480 }
481 if (!true)
482 {
483 }
484 if (!true)
485 {
486 }
487 if (this.cachedLeftStickUp != null)
488 {
489 if (this.cachedLeftStickDown == null)
490 {
491 InputControl control3 = this.GetControl(InputControlType.LeftStickDown);
493 return;
494 }
495 }
496 else
497 {
500 if (this.cachedLeftStickDown == null)
501 {
502 InputControl control5 = this.GetControl(InputControlType.LeftStickDown);
504 }
505 }
506 }
507
508 // Token: 0x06000201 RID: 513 RVA: 0x00005E84 File Offset: 0x00004084
509 public void UpdateLeftStickWithRawValue(Vector2 value, ulong updateTick, float deltaTime)
510 {
511 if (this.cachedLeftStickLeft == null)
512 {
513 InputControl control = this.GetControl(InputControlType.LeftStickLeft);
514 this.cachedLeftStickLeft = control;
515 }
516 if (this.cachedLeftStickRight == null)
517 {
518 InputControl control2 = this.GetControl(InputControlType.LeftStickRight);
520 }
521 if (!true)
522 {
523 }
524 if (!true)
525 {
526 }
527 if (this.cachedLeftStickUp != null)
528 {
529 if (this.cachedLeftStickDown == null)
530 {
531 InputControl control3 = this.GetControl(InputControlType.LeftStickDown);
533 return;
534 }
535 }
536 else
537 {
540 if (this.cachedLeftStickDown == null)
541 {
542 InputControl control5 = this.GetControl(InputControlType.LeftStickDown);
544 }
545 }
546 }
547
548 // Token: 0x06000202 RID: 514 RVA: 0x00005F14 File Offset: 0x00004114
549 public void CommitLeftStick()
550 {
551 InputControl control;
552 if (this.cachedLeftStickUp == null)
553 {
554 control = this.GetControl(InputControlType.LeftStickUp);
555 this.cachedLeftStickUp = control;
556 }
557 control.Commit();
559 if (this.cachedLeftStickDown == null)
560 {
561 control2 = this.GetControl(InputControlType.LeftStickDown);
563 }
564 control2.Commit();
566 if (this.cachedLeftStickLeft == null)
567 {
568 control3 = this.GetControl(InputControlType.LeftStickLeft);
570 }
571 control3.Commit();
573 if (this.cachedLeftStickRight == null)
574 {
575 control4 = this.GetControl(InputControlType.LeftStickRight);
577 }
578 control4.Commit();
579 }
580
581 // Token: 0x06000203 RID: 515 RVA: 0x00005F98 File Offset: 0x00004198
582 public void UpdateRightStickWithValue(Vector2 value, ulong updateTick, float deltaTime)
583 {
584 if (this.cachedRightStickLeft == null)
585 {
586 InputControl control = this.GetControl(InputControlType.RightStickLeft);
588 }
589 if (this.cachedRightStickRight == null)
590 {
591 InputControl control2 = this.GetControl(InputControlType.RightStickRight);
593 }
594 if (!true)
595 {
596 }
597 if (!true)
598 {
599 }
600 if (this.cachedRightStickUp != null)
601 {
602 if (this.cachedRightStickDown == null)
603 {
604 InputControl control3 = this.GetControl(InputControlType.RightStickDown);
606 return;
607 }
608 }
609 else
610 {
613 if (this.cachedRightStickDown == null)
614 {
615 InputControl control5 = this.GetControl(InputControlType.RightStickDown);
617 }
618 }
619 }
620
621 // Token: 0x06000204 RID: 516 RVA: 0x00006028 File Offset: 0x00004228
622 public void UpdateRightStickWithRawValue(Vector2 value, ulong updateTick, float deltaTime)
623 {
624 if (this.cachedRightStickLeft == null)
625 {
626 InputControl control = this.GetControl(InputControlType.RightStickLeft);
628 }
629 if (this.cachedRightStickRight == null)
630 {
631 InputControl control2 = this.GetControl(InputControlType.RightStickRight);
633 }
634 if (!true)
635 {
636 }
637 if (!true)
638 {
639 }
640 if (this.cachedRightStickUp != null)
641 {
642 if (this.cachedRightStickDown == null)
643 {
644 InputControl control3 = this.GetControl(InputControlType.RightStickDown);
646 return;
647 }
648 }
649 else
650 {
653 if (this.cachedRightStickDown == null)
654 {
655 InputControl control5 = this.GetControl(InputControlType.RightStickDown);
657 }
658 }
659 }
660
661 // Token: 0x06000205 RID: 517 RVA: 0x000060B8 File Offset: 0x000042B8
662 public void CommitRightStick()
663 {
664 InputControl control;
665 if (this.cachedRightStickUp == null)
666 {
667 control = this.GetControl(InputControlType.RightStickUp);
668 this.cachedRightStickUp = control;
669 }
670 control.Commit();
672 if (this.cachedRightStickDown == null)
673 {
674 control2 = this.GetControl(InputControlType.RightStickDown);
676 }
677 control2.Commit();
679 if (this.cachedRightStickLeft == null)
680 {
681 control3 = this.GetControl(InputControlType.RightStickLeft);
683 }
684 control3.Commit();
686 if (this.cachedRightStickRight == null)
687 {
688 control4 = this.GetControl(InputControlType.RightStickRight);
690 }
691 control4.Commit();
692 }
693
694 // Token: 0x06000206 RID: 518 RVA: 0x0000613C File Offset: 0x0000433C
695 public virtual void Update(ulong updateTick, float deltaTime)
696 {
697 }
698
699 // Token: 0x06000207 RID: 519 RVA: 0x0000614C File Offset: 0x0000434C
700 private void ProcessLeftStick(ulong updateTick, float deltaTime)
701 {
702 InputControl control;
703 if (this.cachedLeftStickLeft == null)
704 {
705 control = this.GetControl(InputControlType.LeftStickLeft);
706 this.cachedLeftStickLeft = control;
707 }
708 if (control.enabled && control.ownerEnabled)
709 {
710 float rawValue = control.nextState.RawValue;
711 }
713 if (this.cachedLeftStickRight == null)
714 {
715 control2 = this.GetControl(InputControlType.LeftStickRight);
717 }
718 bool ownerEnabled;
719 if (control2.enabled)
720 {
721 ownerEnabled = control2.ownerEnabled;
722 if (ownerEnabled)
723 {
724 float rawValue2 = control2.nextState.RawValue;
725 }
726 }
727 if (!ownerEnabled)
728 {
729 }
731 if (this.cachedLeftStickDown == null)
732 {
733 control3 = this.GetControl(InputControlType.LeftStickDown);
735 }
736 if (control3.enabled && control3.ownerEnabled)
737 {
738 float rawValue3 = control3.nextState.RawValue;
739 }
741 if (this.cachedLeftStickUp == null)
742 {
743 control4 = this.GetControl(InputControlType.LeftStickUp);
745 }
746 bool ownerEnabled2;
747 if (control4.enabled)
748 {
749 ownerEnabled2 = control4.ownerEnabled;
750 if (ownerEnabled2)
751 {
752 float rawValue4 = control4.nextState.RawValue;
753 }
754 }
755 if (!ownerEnabled2)
756 {
757 }
758 if (!true)
759 {
760 }
761 if (!this.<RawSticks>k__BackingField)
762 {
764 if (this.cachedLeftStickLeft == null)
765 {
766 control5 = this.GetControl(InputControlType.LeftStickLeft);
768 }
769 if (!control5.Raw)
770 {
772 if (this.cachedLeftStickRight == null)
773 {
774 control6 = this.GetControl(InputControlType.LeftStickRight);
776 }
777 if (!control6.Raw)
778 {
780 if (this.cachedLeftStickUp == null)
781 {
782 control7 = this.GetControl(InputControlType.LeftStickUp);
784 }
785 if (!control7.Raw)
786 {
788 if (this.cachedLeftStickDown == null)
789 {
790 control8 = this.GetControl(InputControlType.LeftStickDown);
792 }
793 if (!control8.Raw)
794 {
796 if (this.cachedLeftStickLeft == null)
797 {
798 control9 = this.GetControl(InputControlType.LeftStickLeft);
800 }
802 float lowerDeadZone = control9.lowerDeadZone;
804 if (inputControl == null)
805 {
806 control10 = this.GetControl(InputControlType.LeftStickRight);
808 }
810 float lowerDeadZone2 = control10.lowerDeadZone;
812 if (inputControl2 == null)
813 {
814 control11 = this.GetControl(InputControlType.LeftStickUp);
816 }
818 float lowerDeadZone3 = control11.lowerDeadZone;
820 if (inputControl3 == null)
821 {
822 control12 = this.GetControl(InputControlType.LeftStickDown);
824 }
825 float lowerDeadZone4 = control12.lowerDeadZone;
826 if (control11 == null)
827 {
828 }
830 if (this.cachedLeftStickLeft == null)
831 {
832 control13 = this.GetControl(InputControlType.LeftStickLeft);
834 }
836 float upperDeadZone = control13.upperDeadZone;
838 if (inputControl4 == null)
839 {
840 control14 = this.GetControl(InputControlType.LeftStickRight);
842 }
844 float upperDeadZone2 = control14.upperDeadZone;
846 if (inputControl5 == null)
847 {
848 control15 = this.GetControl(InputControlType.LeftStickUp);
850 }
852 float upperDeadZone3 = control15.upperDeadZone;
853 if (inputControl6 == null)
854 {
857 }
858 float upperDeadZone4 = inputControl6.upperDeadZone;
860 IntPtr invoke_impl = deadZoneFunc.invoke_impl;
861 IntPtr method_code = deadZoneFunc.method_code;
862 IntPtr method = deadZoneFunc.method;
863 }
864 }
865 }
866 }
867 }
870 float num;
871 float num2;
872 float num3;
873 twoAxisInputControl.UpdateWithAxes(num, num2, updateTick, num3);
875 if (inputControl7 != null)
876 {
877 inputControl7.Raw = true;
878 return;
879 }
882 control17.Raw = true;
884 if (control17 == null)
885 {
886 control18 = this.GetControl(InputControlType.LeftStickX);
888 }
889 bool flag = control18.UpdateWithValue(num, updateTick, num2);
890 control18.Commit();
892 if (inputControl8 != null)
893 {
894 inputControl8.Raw = true;
895 return;
896 }
899 control19.Raw = true;
901 if (control19 == null)
902 {
903 control20 = this.GetControl(InputControlType.LeftStickY);
905 }
906 bool flag2 = control20.UpdateWithValue(num2, updateTick, num2);
907 control20.Commit();
909 if (this.cachedLeftStickLeft == null)
910 {
912 }
913 OneAxisInputControl <Left>k__BackingField = this.<LeftStick>k__BackingField.<Left>k__BackingField;
914 if (<Left>k__BackingField.enabled && <Left>k__BackingField.ownerEnabled)
915 {
916 float value = <Left>k__BackingField.thisState.Value;
917 }
918 inputControl9.SetValue(num2, updateTick);
920 if (this.cachedLeftStickRight == null)
921 {
922 control21 = this.GetControl(InputControlType.LeftStickRight);
924 }
925 OneAxisInputControl <Right>k__BackingField = this.<LeftStick>k__BackingField.<Right>k__BackingField;
926 if (<Right>k__BackingField.enabled && <Right>k__BackingField.ownerEnabled)
927 {
928 float value2 = <Right>k__BackingField.thisState.Value;
929 }
930 control21.SetValue(num2, updateTick);
932 if (this.cachedLeftStickUp == null)
933 {
934 control22 = this.GetControl(InputControlType.LeftStickUp);
936 }
937 OneAxisInputControl <Up>k__BackingField = this.<LeftStick>k__BackingField.<Up>k__BackingField;
938 if (<Up>k__BackingField.enabled && <Up>k__BackingField.ownerEnabled)
939 {
940 float value3 = <Up>k__BackingField.thisState.Value;
941 }
942 control22.SetValue(num2, updateTick);
944 if (this.cachedLeftStickDown == null)
945 {
946 control23 = this.GetControl(InputControlType.LeftStickDown);
948 }
949 OneAxisInputControl <Down>k__BackingField = this.<LeftStick>k__BackingField.<Down>k__BackingField;
950 if (<Down>k__BackingField.enabled && <Down>k__BackingField.ownerEnabled)
951 {
952 float value4 = <Down>k__BackingField.thisState.Value;
953 }
954 control23.SetValue(num2, updateTick);
955 }
956
957 // Token: 0x06000208 RID: 520 RVA: 0x00006654 File Offset: 0x00004854
958 private void ProcessRightStick(ulong updateTick, float deltaTime)
959 {
960 InputControl control;
961 if (this.cachedRightStickLeft == null)
962 {
963 control = this.GetControl(InputControlType.RightStickLeft);
965 }
966 if (control.enabled && control.ownerEnabled)
967 {
968 float rawValue = control.nextState.RawValue;
969 }
971 if (this.cachedRightStickRight == null)
972 {
973 control2 = this.GetControl(InputControlType.RightStickRight);
975 }
976 bool ownerEnabled;
977 if (control2.enabled)
978 {
979 ownerEnabled = control2.ownerEnabled;
980 if (ownerEnabled)
981 {
982 float rawValue2 = control2.nextState.RawValue;
983 }
984 }
985 if (!ownerEnabled)
986 {
987 }
989 if (this.cachedRightStickDown == null)
990 {
991 control3 = this.GetControl(InputControlType.RightStickDown);
993 }
994 if (control3.enabled && control3.ownerEnabled)
995 {
996 float rawValue3 = control3.nextState.RawValue;
997 }
999 if (this.cachedRightStickUp == null)
1000 {
1001 control4 = this.GetControl(InputControlType.RightStickUp);
1003 }
1004 bool ownerEnabled2;
1005 if (control4.enabled)
1006 {
1007 ownerEnabled2 = control4.ownerEnabled;
1008 if (ownerEnabled2)
1009 {
1010 float rawValue4 = control4.nextState.RawValue;
1011 }
1012 }
1013 if (!ownerEnabled2)
1014 {
1015 }
1016 if (!true)
1017 {
1018 }
1019 if (!this.<RawSticks>k__BackingField)
1020 {
1022 if (this.cachedRightStickLeft == null)
1023 {
1024 control5 = this.GetControl(InputControlType.RightStickLeft);
1026 }
1027 if (!control5.Raw)
1028 {
1030 if (this.cachedRightStickRight == null)
1031 {
1032 control6 = this.GetControl(InputControlType.RightStickRight);
1034 }
1035 if (!control6.Raw)
1036 {
1038 if (this.cachedRightStickUp == null)
1039 {
1040 control7 = this.GetControl(InputControlType.RightStickUp);
1042 }
1043 if (!control7.Raw)
1044 {
1046 if (this.cachedRightStickDown == null)
1047 {
1048 control8 = this.GetControl(InputControlType.RightStickDown);
1050 }
1051 if (!control8.Raw)
1052 {
1054 if (this.cachedRightStickLeft == null)
1055 {
1056 control9 = this.GetControl(InputControlType.RightStickLeft);
1058 }
1060 float lowerDeadZone = control9.lowerDeadZone;
1062 if (inputControl == null)
1063 {
1064 control10 = this.GetControl(InputControlType.RightStickRight);
1066 }
1068 float lowerDeadZone2 = control10.lowerDeadZone;
1070 if (inputControl2 == null)
1071 {
1072 control11 = this.GetControl(InputControlType.RightStickUp);
1074 }
1076 float lowerDeadZone3 = control11.lowerDeadZone;
1078 if (inputControl3 == null)
1079 {
1080 control12 = this.GetControl(InputControlType.RightStickDown);
1082 }
1083 float lowerDeadZone4 = control12.lowerDeadZone;
1084 if (control11 == null)
1085 {
1086 }
1088 if (this.cachedRightStickLeft == null)
1089 {
1090 control13 = this.GetControl(InputControlType.RightStickLeft);
1092 }
1094 float upperDeadZone = control13.upperDeadZone;
1096 if (inputControl4 == null)
1097 {
1098 control14 = this.GetControl(InputControlType.RightStickRight);
1100 }
1102 float upperDeadZone2 = control14.upperDeadZone;
1104 if (inputControl5 == null)
1105 {
1106 control15 = this.GetControl(InputControlType.RightStickUp);
1108 }
1110 float upperDeadZone3 = control15.upperDeadZone;
1112 if (inputControl6 == null)
1113 {
1114 control16 = this.GetControl(InputControlType.RightStickDown);
1116 }
1117 float upperDeadZone4 = control16.upperDeadZone;
1119 IntPtr invoke_impl = deadZoneFunc.invoke_impl;
1120 IntPtr method_code = deadZoneFunc.method_code;
1121 IntPtr method = deadZoneFunc.method;
1122 }
1123 }
1124 }
1125 }
1126 }
1129 float num;
1130 float num2;
1131 float num3;
1132 twoAxisInputControl.UpdateWithAxes(num, num2, updateTick, num3);
1134 if (inputControl7 != null)
1135 {
1136 inputControl7.Raw = true;
1137 return;
1138 }
1141 control17.Raw = true;
1143 if (control17 == null)
1144 {
1145 control18 = this.GetControl(InputControlType.RightStickX);
1147 }
1148 bool flag = control18.UpdateWithValue(num, updateTick, num2);
1149 control18.Commit();
1151 if (inputControl8 != null)
1152 {
1153 inputControl8.Raw = true;
1154 return;
1155 }
1158 control19.Raw = true;
1160 if (control19 == null)
1161 {
1162 control20 = this.GetControl(InputControlType.RightStickY);
1164 }
1165 bool flag2 = control20.UpdateWithValue(num2, updateTick, num2);
1166 control20.Commit();
1168 if (this.cachedRightStickLeft == null)
1169 {
1170 control21 = this.GetControl(InputControlType.RightStickLeft);
1172 }
1173 OneAxisInputControl <Left>k__BackingField = this.<RightStick>k__BackingField.<Left>k__BackingField;
1174 if (<Left>k__BackingField.enabled && <Left>k__BackingField.ownerEnabled)
1175 {
1176 float value = <Left>k__BackingField.thisState.Value;
1177 }
1178 control21.SetValue(num2, updateTick);
1180 if (this.cachedRightStickRight == null)
1181 {
1182 control22 = this.GetControl(InputControlType.RightStickRight);
1184 }
1185 OneAxisInputControl <Right>k__BackingField = this.<RightStick>k__BackingField.<Right>k__BackingField;
1186 if (<Right>k__BackingField.enabled && <Right>k__BackingField.ownerEnabled)
1187 {
1188 float value2 = <Right>k__BackingField.thisState.Value;
1189 }
1190 control22.SetValue(num2, updateTick);
1192 if (this.cachedRightStickUp == null)
1193 {
1194 control23 = this.GetControl(InputControlType.RightStickUp);
1196 }
1197 OneAxisInputControl <Up>k__BackingField = this.<RightStick>k__BackingField.<Up>k__BackingField;
1198 if (<Up>k__BackingField.enabled && <Up>k__BackingField.ownerEnabled)
1199 {
1200 float value3 = <Up>k__BackingField.thisState.Value;
1201 }
1202 control23.SetValue(num2, updateTick);
1204 if (this.cachedRightStickDown == null)
1205 {
1206 control24 = this.GetControl(InputControlType.RightStickDown);
1208 }
1209 OneAxisInputControl <Down>k__BackingField = this.<RightStick>k__BackingField.<Down>k__BackingField;
1210 if (<Down>k__BackingField.enabled && <Down>k__BackingField.ownerEnabled)
1211 {
1212 float value4 = <Down>k__BackingField.thisState.Value;
1213 }
1214 control24.SetValue(num2, updateTick);
1215 }
1216
1217 // Token: 0x06000209 RID: 521 RVA: 0x00006B6C File Offset: 0x00004D6C
1218 private void ProcessDPad(ulong updateTick, float deltaTime)
1219 {
1220 InputControl control;
1221 if (this.cachedDPadLeft == null)
1222 {
1223 control = this.GetControl(InputControlType.DPadLeft);
1224 this.cachedDPadLeft = control;
1225 }
1226 if (control.enabled && control.ownerEnabled)
1227 {
1228 float rawValue = control.nextState.RawValue;
1229 }
1231 if (this.cachedDPadRight == null)
1232 {
1233 control2 = this.GetControl(InputControlType.DPadRight);
1235 }
1236 bool ownerEnabled;
1237 if (control2.enabled)
1238 {
1239 ownerEnabled = control2.ownerEnabled;
1240 if (ownerEnabled)
1241 {
1242 float rawValue2 = control2.nextState.RawValue;
1243 }
1244 }
1245 if (!ownerEnabled)
1246 {
1247 }
1249 if (this.cachedDPadDown == null)
1250 {
1251 control3 = this.GetControl(InputControlType.DPadDown);
1253 }
1254 if (control3.enabled && control3.ownerEnabled)
1255 {
1256 float rawValue3 = control3.nextState.RawValue;
1257 }
1259 if (this.cachedDPadUp == null)
1260 {
1261 control4 = this.GetControl(InputControlType.DPadUp);
1263 }
1264 bool ownerEnabled2;
1265 if (control4.enabled)
1266 {
1267 ownerEnabled2 = control4.ownerEnabled;
1268 if (ownerEnabled2)
1269 {
1270 float rawValue4 = control4.nextState.RawValue;
1271 }
1272 }
1273 if (!ownerEnabled2)
1274 {
1275 }
1276 if (!true)
1277 {
1278 }
1279 if (!this.<RawSticks>k__BackingField)
1280 {
1282 if (this.cachedDPadLeft == null)
1283 {
1284 control5 = this.GetControl(InputControlType.DPadLeft);
1286 }
1287 if (!control5.Raw)
1288 {
1290 if (this.cachedDPadRight == null)
1291 {
1292 control6 = this.GetControl(InputControlType.DPadRight);
1294 }
1295 if (!control6.Raw)
1296 {
1298 if (this.cachedDPadUp == null)
1299 {
1300 control7 = this.GetControl(InputControlType.DPadUp);
1302 }
1303 if (!control7.Raw)
1304 {
1306 if (this.cachedDPadDown == null)
1307 {
1308 control8 = this.GetControl(InputControlType.DPadDown);
1310 }
1311 if (!control8.Raw)
1312 {
1314 if (this.cachedDPadLeft == null)
1315 {
1316 control9 = this.GetControl(InputControlType.DPadLeft);
1318 }
1320 float lowerDeadZone = control9.lowerDeadZone;
1322 if (inputControl == null)
1323 {
1324 control10 = this.GetControl(InputControlType.DPadRight);
1326 }
1328 float lowerDeadZone2 = control10.lowerDeadZone;
1330 if (inputControl2 == null)
1331 {
1332 control11 = this.GetControl(InputControlType.DPadUp);
1334 }
1336 float lowerDeadZone3 = control11.lowerDeadZone;
1338 if (inputControl3 == null)
1339 {
1340 control12 = this.GetControl(InputControlType.DPadDown);
1342 }
1343 float lowerDeadZone4 = control12.lowerDeadZone;
1344 if (control11 == null)
1345 {
1346 }
1348 if (this.cachedDPadLeft == null)
1349 {
1350 control13 = this.GetControl(InputControlType.DPadLeft);
1352 }
1354 float upperDeadZone = control13.upperDeadZone;
1356 if (inputControl4 == null)
1357 {
1358 control14 = this.GetControl(InputControlType.DPadRight);
1360 }
1362 float upperDeadZone2 = control14.upperDeadZone;
1364 if (inputControl5 == null)
1365 {
1366 control15 = this.GetControl(InputControlType.DPadUp);
1368 }
1370 float upperDeadZone3 = control15.upperDeadZone;
1372 if (inputControl6 == null)
1373 {
1374 control16 = this.GetControl(InputControlType.DPadDown);
1376 }
1377 float upperDeadZone4 = control16.upperDeadZone;
1378 DeadZoneFunc deadZoneFunc = this.<DPad>k__BackingField.DeadZoneFunc;
1379 IntPtr invoke_impl = deadZoneFunc.invoke_impl;
1380 IntPtr method_code = deadZoneFunc.method_code;
1381 IntPtr method = deadZoneFunc.method;
1382 }
1383 }
1384 }
1385 }
1386 }
1389 float num;
1390 float num2;
1391 float num3;
1392 twoAxisInputControl.UpdateWithAxes(num, num2, updateTick, num3);
1394 if (inputControl7 != null)
1395 {
1396 inputControl7.Raw = true;
1397 return;
1398 }
1401 control17.Raw = true;
1403 if (control17 == null)
1404 {
1407 }
1408 bool flag = control18.UpdateWithValue(num, updateTick, num2);
1409 control18.Commit();
1411 if (inputControl8 != null)
1412 {
1413 inputControl8.Raw = true;
1414 return;
1415 }
1418 control19.Raw = true;
1420 if (control19 == null)
1421 {
1424 }
1425 bool flag2 = control20.UpdateWithValue(num2, updateTick, num2);
1426 control20.Commit();
1428 if (this.cachedDPadLeft == null)
1429 {
1430 control21 = this.GetControl(InputControlType.DPadLeft);
1432 }
1433 OneAxisInputControl <Left>k__BackingField = this.<DPad>k__BackingField.<Left>k__BackingField;
1434 if (<Left>k__BackingField.enabled && <Left>k__BackingField.ownerEnabled)
1435 {
1436 float value = <Left>k__BackingField.thisState.Value;
1437 }
1438 control21.SetValue(num2, updateTick);
1440 if (this.cachedDPadRight == null)
1441 {
1442 control22 = this.GetControl(InputControlType.DPadRight);
1444 }
1445 OneAxisInputControl <Right>k__BackingField = this.<DPad>k__BackingField.<Right>k__BackingField;
1446 if (<Right>k__BackingField.enabled && <Right>k__BackingField.ownerEnabled)
1447 {
1448 float value2 = <Right>k__BackingField.thisState.Value;
1449 }
1450 control22.SetValue(num2, updateTick);
1452 if (this.cachedDPadUp == null)
1453 {
1454 control23 = this.GetControl(InputControlType.DPadUp);
1456 }
1457 OneAxisInputControl <Up>k__BackingField = this.<DPad>k__BackingField.<Up>k__BackingField;
1458 if (<Up>k__BackingField.enabled && <Up>k__BackingField.ownerEnabled)
1459 {
1460 float value3 = <Up>k__BackingField.thisState.Value;
1461 }
1462 control23.SetValue(num2, updateTick);
1464 if (this.cachedDPadDown == null)
1465 {
1466 control24 = this.GetControl(InputControlType.DPadDown);
1468 }
1469 OneAxisInputControl <Down>k__BackingField = this.<DPad>k__BackingField.<Down>k__BackingField;
1470 if (<Down>k__BackingField.enabled && <Down>k__BackingField.ownerEnabled)
1471 {
1472 float value4 = <Down>k__BackingField.thisState.Value;
1473 }
1474 control24.SetValue(num2, updateTick);
1475 }
1476
1477 // Token: 0x0600020A RID: 522 RVA: 0x00007090 File Offset: 0x00005290
1478 public void Commit(ulong updateTick, float deltaTime)
1479 {
1480 this.ProcessLeftStick(updateTick, deltaTime);
1481 this.ProcessRightStick(updateTick, deltaTime);
1482 this.ProcessDPad(updateTick, deltaTime);
1484 if (this.<Controls>k__BackingField != null)
1485 {
1486 }
1488 long num = 0L;
1490 if (inputControl != null)
1491 {
1492 inputControl.Passive = num != 0L;
1493 return;
1494 }
1497 inputControl2.Passive = num != 0L;
1498 int num2;
1500 if (inputControl2 == null)
1501 {
1502 num2 = 300;
1504 }
1505 inputControl3.CommitWithState(num2 != 0, updateTick, deltaTime);
1506 int num3 = 1;
1507 if (this.<Controls>k__BackingField != null && num == 0L)
1508 {
1509 this.<LastInputTick>k__BackingField = updateTick;
1510 this.<IsActive>k__BackingField = num3 != 0;
1511 }
1512 }
1513
1514 // Token: 0x0600020B RID: 523 RVA: 0x00007134 File Offset: 0x00005334
1515 public bool LastInputAfter(InputDevice device)
1516 {
1517 if (device != null)
1518 {
1521 }
1522 return true;
1523 }
1524
1525 // Token: 0x0600020C RID: 524 RVA: 0x00007154 File Offset: 0x00005354
1526 internal void RequestActivation()
1527 {
1528 if (!true)
1529 {
1530 }
1531 if (!true)
1532 {
1533 }
1534 this.<IsActive>k__BackingField = true;
1535 this.<LastInputTick>k__BackingField = 1UL;
1536 }
1537
1538 // Token: 0x0600020D RID: 525 RVA: 0x00007178 File Offset: 0x00005378
1539 public virtual void Vibrate(float leftMotor, float rightMotor)
1540 {
1541 }
1542
1543 // Token: 0x0600020E RID: 526 RVA: 0x00007188 File Offset: 0x00005388
1544 public void Vibrate(float intensity)
1545 {
1546 }
1547
1548 // Token: 0x0600020F RID: 527 RVA: 0x00007198 File Offset: 0x00005398
1549 public void StopVibration()
1550 {
1551 }
1552
1553 // Token: 0x06000210 RID: 528 RVA: 0x000071A8 File Offset: 0x000053A8
1554 public virtual void SetLightColor(float red, float green, float blue)
1555 {
1556 }
1557
1558 // Token: 0x06000211 RID: 529 RVA: 0x000071B8 File Offset: 0x000053B8
1559 public void SetLightColor(Color color)
1560 {
1561 }
1562
1563 // Token: 0x06000212 RID: 530 RVA: 0x000071C8 File Offset: 0x000053C8
1564 public virtual void SetLightFlash(float flashOnDuration, float flashOffDuration)
1565 {
1566 }
1567
1568 // Token: 0x06000213 RID: 531 RVA: 0x000071D8 File Offset: 0x000053D8
1569 public void StopLightFlash()
1570 {
1571 }
1572
1573 // Token: 0x1700009C RID: 156
1574 // (get) Token: 0x06000214 RID: 532 RVA: 0x000071E8 File Offset: 0x000053E8
1575 public virtual bool IsSupportedOnThisPlatform
1576 {
1577 get
1578 {
1579 return true;
1580 }
1581 }
1582
1583 // Token: 0x1700009D RID: 157
1584 // (get) Token: 0x06000215 RID: 533 RVA: 0x000071F8 File Offset: 0x000053F8
1585 public virtual bool IsKnown
1586 {
1587 get
1588 {
1589 return true;
1590 }
1591 }
1592
1593 // Token: 0x1700009E RID: 158
1594 // (get) Token: 0x06000216 RID: 534 RVA: 0x000025E1 File Offset: 0x000007E1
1595 public bool IsUnknown
1596 {
1597 get
1598 {
1599 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1600 }
1601 }
1602
1603 // Token: 0x1700009F RID: 159
1604 // (get) Token: 0x06000217 RID: 535 RVA: 0x00007208 File Offset: 0x00005408
1605 [Obsolete("Use InputDevice.CommandIsPressed instead.", false)]
1606 public bool MenuIsPressed
1607 {
1608 get
1609 {
1610 InputControl control;
1611 if (this.cachedCommand == null)
1612 {
1613 control = this.GetControl(InputControlType.Command);
1614 this.cachedCommand = control;
1615 }
1616 if (control.enabled && control.ownerEnabled)
1617 {
1618 InputControlState thisState = control.thisState;
1619 return;
1620 }
1621 }
1622 }
1623
1624 // Token: 0x170000A0 RID: 160
1625 // (get) Token: 0x06000218 RID: 536 RVA: 0x00007248 File Offset: 0x00005448
1626 [Obsolete("Use InputDevice.CommandWasPressed instead.", false)]
1627 public bool MenuWasPressed
1628 {
1629 get
1630 {
1631 InputControl control;
1632 if (this.cachedCommand == null)
1633 {
1634 control = this.GetControl(InputControlType.Command);
1635 this.cachedCommand = control;
1636 }
1637 if (control.enabled && control.ownerEnabled)
1638 {
1639 InputControlState thisState = control.thisState;
1640 return;
1641 }
1642 }
1643 }
1644
1645 // Token: 0x170000A1 RID: 161
1646 // (get) Token: 0x06000219 RID: 537 RVA: 0x00007288 File Offset: 0x00005488
1647 [Obsolete("Use InputDevice.CommandWasReleased instead.", false)]
1649 {
1650 get
1651 {
1652 InputControl control;
1653 if (this.cachedCommand == null)
1654 {
1655 control = this.GetControl(InputControlType.Command);
1656 this.cachedCommand = control;
1657 }
1658 if (control.enabled && control.ownerEnabled)
1659 {
1660 InputControlState thisState = control.thisState;
1661 InputControlState lastState = control.lastState;
1662 return;
1663 }
1664 }
1665 }
1666
1667 // Token: 0x170000A2 RID: 162
1668 // (get) Token: 0x0600021A RID: 538 RVA: 0x000072D0 File Offset: 0x000054D0
1670 {
1671 get
1672 {
1673 InputControl control;
1674 if (this.cachedCommand == null)
1675 {
1676 control = this.GetControl(InputControlType.Command);
1677 this.cachedCommand = control;
1678 }
1679 if (control.enabled && control.ownerEnabled)
1680 {
1681 InputControlState thisState = control.thisState;
1682 return;
1683 }
1684 }
1685 }
1686
1687 // Token: 0x170000A3 RID: 163
1688 // (get) Token: 0x0600021B RID: 539 RVA: 0x00007310 File Offset: 0x00005510
1690 {
1691 get
1692 {
1693 InputControl control;
1694 if (this.cachedCommand == null)
1695 {
1696 control = this.GetControl(InputControlType.Command);
1697 this.cachedCommand = control;
1698 }
1699 if (control.enabled && control.ownerEnabled)
1700 {
1701 InputControlState thisState = control.thisState;
1702 return;
1703 }
1704 }
1705 }
1706
1707 // Token: 0x170000A4 RID: 164
1708 // (get) Token: 0x0600021C RID: 540 RVA: 0x00007350 File Offset: 0x00005550
1710 {
1711 get
1712 {
1713 InputControl control;
1714 if (this.cachedCommand == null)
1715 {
1716 control = this.GetControl(InputControlType.Command);
1717 this.cachedCommand = control;
1718 }
1719 if (control.enabled && control.ownerEnabled)
1720 {
1721 InputControlState thisState = control.thisState;
1722 InputControlState lastState = control.lastState;
1723 return;
1724 }
1725 }
1726 }
1727
1728 // Token: 0x170000A5 RID: 165
1729 // (get) Token: 0x0600021D RID: 541 RVA: 0x00007398 File Offset: 0x00005598
1731 {
1732 get
1733 {
1734 /*
1735An exception occurred when decompiling this method (0600021D)
1736
1737ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.InputControl InControl.InputDevice::get_AnyButton()
1738
1739 ---> System.Exception: Basic block has to end with unconditional control flow.
1740{
1741 IL_001F:
1742 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
1743}
1744
1745 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1746 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1747 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1748 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
1749 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1750 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1751 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
1752 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1753 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1754 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1755 --- End of inner exception stack trace ---
1756 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1757 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1758*/;
1759 }
1760 }
1761
1762 // Token: 0x170000A6 RID: 166
1763 // (get) Token: 0x0600021E RID: 542 RVA: 0x000073C8 File Offset: 0x000055C8
1765 {
1766 get
1767 {
1768 int num = 1;
1770 if (this.<Controls>k__BackingField == null || num == 0 || num == 0 || num == 0 || num == 0)
1771 {
1772 return;
1773 }
1774 }
1775 }
1776
1777 // Token: 0x170000A7 RID: 167
1778 // (get) Token: 0x0600021F RID: 543 RVA: 0x000073F8 File Offset: 0x000055F8
1780 {
1781 get
1782 {
1783 int num = 1;
1785 if (this.<Controls>k__BackingField == null || num == 0 || num == 0 || num != 0)
1786 {
1787 return;
1788 }
1789 }
1790 }
1791
1792 // Token: 0x170000A8 RID: 168
1793 // (get) Token: 0x06000220 RID: 544 RVA: 0x00007428 File Offset: 0x00005628
1795 {
1796 get
1797 {
1798 int num = 1;
1800 if (this.<Controls>k__BackingField == null || num == 0 || num == 0 || num != 0)
1801 {
1802 return;
1803 }
1804 }
1805 }
1806
1807 // Token: 0x170000A9 RID: 169
1808 // (get) Token: 0x06000221 RID: 545 RVA: 0x00007458 File Offset: 0x00005658
1810 {
1811 get
1812 {
1813 /*
1814An exception occurred when decompiling this method (06000221)
1815
1816ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.TwoAxisInputControl InControl.InputDevice::get_Direction()
1817
1818 ---> System.Exception: Basic block has to end with unconditional control flow.
1819{
1820 Block_0:
1821 stloc:TwoAxisInputControl(var_0_06, ldfld:TwoAxisInputControl(InputDevice::<DPad>k__BackingField, ldloc:InputDevice(this)))
1822 stloc:TwoAxisInputControl(var_1_0D, ldfld:TwoAxisInputControl(InputDevice::<LeftStick>k__BackingField, ldloc:InputDevice(this)))
1823 stloc:uint64(var_2_14, ldfld:uint64(TwoAxisInputControl::<UpdateTick>k__BackingField, ldloc:TwoAxisInputControl(var_0_06)))
1824 stloc:uint64(var_3_1B, ldfld:uint64(TwoAxisInputControl::<UpdateTick>k__BackingField, ldloc:TwoAxisInputControl(var_1_0D)))
1825}
1826
1827 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1828 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1829 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1830 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1831 --- End of inner exception stack trace ---
1832 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1833 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1834*/;
1835 }
1836 }
1837
1838 // Token: 0x170000AA RID: 170
1839 // (get) Token: 0x06000222 RID: 546 RVA: 0x00007480 File Offset: 0x00005680
1841 {
1842 get
1843 {
1844 InputControl control;
1845 if (this.cachedLeftStickUp == null)
1846 {
1847 control = this.GetControl(InputControlType.LeftStickUp);
1848 this.cachedLeftStickUp = control;
1849 }
1850 return control;
1851 }
1852 }
1853
1854 // Token: 0x170000AB RID: 171
1855 // (get) Token: 0x06000223 RID: 547 RVA: 0x000074A8 File Offset: 0x000056A8
1857 {
1858 get
1859 {
1860 InputControl control;
1861 if (this.cachedLeftStickDown == null)
1862 {
1863 control = this.GetControl(InputControlType.LeftStickDown);
1864 this.cachedLeftStickDown = control;
1865 }
1866 return control;
1867 }
1868 }
1869
1870 // Token: 0x170000AC RID: 172
1871 // (get) Token: 0x06000224 RID: 548 RVA: 0x000074D0 File Offset: 0x000056D0
1873 {
1874 get
1875 {
1876 InputControl control;
1877 if (this.cachedLeftStickLeft == null)
1878 {
1879 control = this.GetControl(InputControlType.LeftStickLeft);
1880 this.cachedLeftStickLeft = control;
1881 }
1882 return control;
1883 }
1884 }
1885
1886 // Token: 0x170000AD RID: 173
1887 // (get) Token: 0x06000225 RID: 549 RVA: 0x000074F8 File Offset: 0x000056F8
1889 {
1890 get
1891 {
1892 InputControl control;
1893 if (this.cachedLeftStickRight == null)
1894 {
1895 control = this.GetControl(InputControlType.LeftStickRight);
1896 this.cachedLeftStickRight = control;
1897 }
1898 return control;
1899 }
1900 }
1901
1902 // Token: 0x170000AE RID: 174
1903 // (get) Token: 0x06000226 RID: 550 RVA: 0x00007520 File Offset: 0x00005720
1905 {
1906 get
1907 {
1908 InputControl control;
1909 if (this.cachedRightStickUp == null)
1910 {
1911 control = this.GetControl(InputControlType.RightStickUp);
1912 this.cachedRightStickUp = control;
1913 }
1914 return control;
1915 }
1916 }
1917
1918 // Token: 0x170000AF RID: 175
1919 // (get) Token: 0x06000227 RID: 551 RVA: 0x00007548 File Offset: 0x00005748
1921 {
1922 get
1923 {
1924 InputControl control;
1925 if (this.cachedRightStickDown == null)
1926 {
1927 control = this.GetControl(InputControlType.RightStickDown);
1928 this.cachedRightStickDown = control;
1929 }
1930 return control;
1931 }
1932 }
1933
1934 // Token: 0x170000B0 RID: 176
1935 // (get) Token: 0x06000228 RID: 552 RVA: 0x00007570 File Offset: 0x00005770
1937 {
1938 get
1939 {
1940 InputControl control;
1941 if (this.cachedRightStickLeft == null)
1942 {
1943 control = this.GetControl(InputControlType.RightStickLeft);
1944 this.cachedRightStickLeft = control;
1945 }
1946 return control;
1947 }
1948 }
1949
1950 // Token: 0x170000B1 RID: 177
1951 // (get) Token: 0x06000229 RID: 553 RVA: 0x00007598 File Offset: 0x00005798
1953 {
1954 get
1955 {
1956 InputControl control;
1957 if (this.cachedRightStickRight == null)
1958 {
1959 control = this.GetControl(InputControlType.RightStickRight);
1961 }
1962 return control;
1963 }
1964 }
1965
1966 // Token: 0x170000B2 RID: 178
1967 // (get) Token: 0x0600022A RID: 554 RVA: 0x000075C0 File Offset: 0x000057C0
1969 {
1970 get
1971 {
1972 InputControl control;
1973 if (this.cachedDPadUp == null)
1974 {
1975 control = this.GetControl(InputControlType.DPadUp);
1976 this.cachedDPadUp = control;
1977 }
1978 return control;
1979 }
1980 }
1981
1982 // Token: 0x170000B3 RID: 179
1983 // (get) Token: 0x0600022B RID: 555 RVA: 0x000075E8 File Offset: 0x000057E8
1985 {
1986 get
1987 {
1988 InputControl control;
1989 if (this.cachedDPadDown == null)
1990 {
1991 control = this.GetControl(InputControlType.DPadDown);
1992 this.cachedDPadDown = control;
1993 }
1994 return control;
1995 }
1996 }
1997
1998 // Token: 0x170000B4 RID: 180
1999 // (get) Token: 0x0600022C RID: 556 RVA: 0x00007610 File Offset: 0x00005810
2001 {
2002 get
2003 {
2004 InputControl control;
2005 if (this.cachedDPadLeft == null)
2006 {
2007 control = this.GetControl(InputControlType.DPadLeft);
2008 this.cachedDPadLeft = control;
2009 }
2010 return control;
2011 }
2012 }
2013
2014 // Token: 0x170000B5 RID: 181
2015 // (get) Token: 0x0600022D RID: 557 RVA: 0x00007638 File Offset: 0x00005838
2017 {
2018 get
2019 {
2020 InputControl control;
2021 if (this.cachedDPadRight == null)
2022 {
2023 control = this.GetControl(InputControlType.DPadRight);
2024 this.cachedDPadRight = control;
2025 }
2026 return control;
2027 }
2028 }
2029
2030 // Token: 0x170000B6 RID: 182
2031 // (get) Token: 0x0600022E RID: 558 RVA: 0x00007660 File Offset: 0x00005860
2033 {
2034 get
2035 {
2036 InputControl control;
2037 if (this.cachedAction1 == null)
2038 {
2039 control = this.GetControl(InputControlType.Action1);
2040 this.cachedAction1 = control;
2041 }
2042 return control;
2043 }
2044 }
2045
2046 // Token: 0x170000B7 RID: 183
2047 // (get) Token: 0x0600022F RID: 559 RVA: 0x00007688 File Offset: 0x00005888
2049 {
2050 get
2051 {
2052 InputControl control;
2053 if (this.cachedAction2 == null)
2054 {
2055 control = this.GetControl(InputControlType.Action2);
2056 this.cachedAction2 = control;
2057 }
2058 return control;
2059 }
2060 }
2061
2062 // Token: 0x170000B8 RID: 184
2063 // (get) Token: 0x06000230 RID: 560 RVA: 0x000076B0 File Offset: 0x000058B0
2065 {
2066 get
2067 {
2068 InputControl control;
2069 if (this.cachedAction3 == null)
2070 {
2071 control = this.GetControl(InputControlType.Action3);
2072 this.cachedAction3 = control;
2073 }
2074 return control;
2075 }
2076 }
2077
2078 // Token: 0x170000B9 RID: 185
2079 // (get) Token: 0x06000231 RID: 561 RVA: 0x000076D8 File Offset: 0x000058D8
2081 {
2082 get
2083 {
2084 InputControl control;
2085 if (this.cachedAction4 == null)
2086 {
2087 control = this.GetControl(InputControlType.Action4);
2088 this.cachedAction4 = control;
2089 }
2090 return control;
2091 }
2092 }
2093
2094 // Token: 0x170000BA RID: 186
2095 // (get) Token: 0x06000232 RID: 562 RVA: 0x00007700 File Offset: 0x00005900
2097 {
2098 get
2099 {
2100 InputControl control;
2101 if (this.cachedLeftTrigger == null)
2102 {
2103 control = this.GetControl(InputControlType.LeftTrigger);
2104 this.cachedLeftTrigger = control;
2105 }
2106 return control;
2107 }
2108 }
2109
2110 // Token: 0x170000BB RID: 187
2111 // (get) Token: 0x06000233 RID: 563 RVA: 0x00007728 File Offset: 0x00005928
2113 {
2114 get
2115 {
2116 InputControl control;
2117 if (this.cachedRightTrigger == null)
2118 {
2119 control = this.GetControl(InputControlType.RightTrigger);
2120 this.cachedRightTrigger = control;
2121 }
2122 return control;
2123 }
2124 }
2125
2126 // Token: 0x170000BC RID: 188
2127 // (get) Token: 0x06000234 RID: 564 RVA: 0x00007750 File Offset: 0x00005950
2129 {
2130 get
2131 {
2132 InputControl control;
2133 if (this.cachedLeftBumper == null)
2134 {
2135 control = this.GetControl(InputControlType.LeftBumper);
2136 this.cachedLeftBumper = control;
2137 }
2138 return control;
2139 }
2140 }
2141
2142 // Token: 0x170000BD RID: 189
2143 // (get) Token: 0x06000235 RID: 565 RVA: 0x00007778 File Offset: 0x00005978
2145 {
2146 get
2147 {
2148 InputControl control;
2149 if (this.cachedRightBumper == null)
2150 {
2151 control = this.GetControl(InputControlType.RightBumper);
2152 this.cachedRightBumper = control;
2153 }
2154 return control;
2155 }
2156 }
2157
2158 // Token: 0x170000BE RID: 190
2159 // (get) Token: 0x06000236 RID: 566 RVA: 0x000077A0 File Offset: 0x000059A0
2161 {
2162 get
2163 {
2164 InputControl control;
2165 if (this.cachedLeftStickButton == null)
2166 {
2167 control = this.GetControl(InputControlType.LeftStickButton);
2169 }
2170 return control;
2171 }
2172 }
2173
2174 // Token: 0x170000BF RID: 191
2175 // (get) Token: 0x06000237 RID: 567 RVA: 0x000077C8 File Offset: 0x000059C8
2177 {
2178 get
2179 {
2180 InputControl control;
2181 if (this.cachedRightStickButton == null)
2182 {
2183 control = this.GetControl(InputControlType.RightStickButton);
2185 }
2186 return control;
2187 }
2188 }
2189
2190 // Token: 0x170000C0 RID: 192
2191 // (get) Token: 0x06000238 RID: 568 RVA: 0x000077F0 File Offset: 0x000059F0
2193 {
2194 get
2195 {
2196 InputControl control;
2197 if (this.cachedLeftStickX == null)
2198 {
2199 control = this.GetControl(InputControlType.LeftStickX);
2200 this.cachedLeftStickX = control;
2201 }
2202 return control;
2203 }
2204 }
2205
2206 // Token: 0x170000C1 RID: 193
2207 // (get) Token: 0x06000239 RID: 569 RVA: 0x0000781C File Offset: 0x00005A1C
2209 {
2210 get
2211 {
2212 InputControl control;
2213 if (this.cachedLeftStickY == null)
2214 {
2215 control = this.GetControl(InputControlType.LeftStickY);
2216 this.cachedLeftStickY = control;
2217 }
2218 return control;
2219 }
2220 }
2221
2222 // Token: 0x170000C2 RID: 194
2223 // (get) Token: 0x0600023A RID: 570 RVA: 0x00007848 File Offset: 0x00005A48
2225 {
2226 get
2227 {
2228 InputControl control;
2229 if (this.cachedRightStickX == null)
2230 {
2231 control = this.GetControl(InputControlType.RightStickX);
2232 this.cachedRightStickX = control;
2233 }
2234 return control;
2235 }
2236 }
2237
2238 // Token: 0x170000C3 RID: 195
2239 // (get) Token: 0x0600023B RID: 571 RVA: 0x00007874 File Offset: 0x00005A74
2241 {
2242 get
2243 {
2244 InputControl control;
2245 if (this.cachedRightStickY == null)
2246 {
2247 control = this.GetControl(InputControlType.RightStickY);
2248 this.cachedRightStickY = control;
2249 }
2250 return control;
2251 }
2252 }
2253
2254 // Token: 0x170000C4 RID: 196
2255 // (get) Token: 0x0600023C RID: 572 RVA: 0x000078A0 File Offset: 0x00005AA0
2257 {
2258 get
2259 {
2260 InputControl control;
2261 if (this.cachedDPadX == null)
2262 {
2263 control = this.GetControl(InputControlType.DPadX);
2264 this.cachedDPadX = control;
2265 }
2266 return control;
2267 }
2268 }
2269
2270 // Token: 0x170000C5 RID: 197
2271 // (get) Token: 0x0600023D RID: 573 RVA: 0x000078CC File Offset: 0x00005ACC
2273 {
2274 get
2275 {
2276 InputControl control;
2277 if (this.cachedDPadY == null)
2278 {
2279 control = this.GetControl(InputControlType.DPadY);
2280 this.cachedDPadY = control;
2281 }
2282 return control;
2283 }
2284 }
2285
2286 // Token: 0x170000C6 RID: 198
2287 // (get) Token: 0x0600023E RID: 574 RVA: 0x000078F8 File Offset: 0x00005AF8
2289 {
2290 get
2291 {
2292 InputControl control;
2293 if (this.cachedCommand == null)
2294 {
2295 control = this.GetControl(InputControlType.Command);
2296 this.cachedCommand = control;
2297 }
2298 return control;
2299 }
2300 }
2301
2302 // Token: 0x0600023F RID: 575 RVA: 0x00007924 File Offset: 0x00005B24
2303 private void ExpireControlCache()
2304 {
2305 }
2306
2307 // Token: 0x170000C7 RID: 199
2308 // (get) Token: 0x06000240 RID: 576 RVA: 0x00007934 File Offset: 0x00005B34
2309 public virtual int NumUnknownAnalogs
2310 {
2311 get
2312 {
2313 }
2314 }
2315
2316 // Token: 0x170000C8 RID: 200
2317 // (get) Token: 0x06000241 RID: 577 RVA: 0x00007944 File Offset: 0x00005B44
2318 public virtual int NumUnknownButtons
2319 {
2320 get
2321 {
2322 }
2323 }
2324
2325 // Token: 0x06000242 RID: 578 RVA: 0x00007954 File Offset: 0x00005B54
2326 public virtual bool ReadRawButtonState(int index)
2327 {
2328 }
2329
2330 // Token: 0x06000243 RID: 579 RVA: 0x000025E1 File Offset: 0x000007E1
2331 public virtual float ReadRawAnalogValue(int index)
2332 {
2333 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2334 }
2335
2336 // Token: 0x06000244 RID: 580 RVA: 0x00007964 File Offset: 0x00005B64
2337 public void TakeSnapshot()
2338 {
2339 if (this.<AnalogSnapshot>k__BackingField == null)
2340 {
2341 }
2343 }
2344
2345 // Token: 0x06000245 RID: 581 RVA: 0x00007984 File Offset: 0x00005B84
2347 {
2348 /*
2349An exception occurred when decompiling this method (06000245)
2350
2351ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.UnknownDeviceControl InControl.InputDevice::GetFirstPressedAnalog()
2352
2353 ---> System.Exception: Basic block has to end with unconditional control flow.
2354{
2355 Block_0:
2356 stloc:valuetype InControl.InputDevice/AnalogSnapshotEntry[](var_3_12, ldfld:valuetype InControl.InputDevice/AnalogSnapshotEntry[](InputDevice::<AnalogSnapshot>k__BackingField, ldloc:InputDevice(this)))
2357}
2358
2359 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2360 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2361 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2362 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2363 --- End of inner exception stack trace ---
2364 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2365 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2366*/;
2367 }
2368
2369 // Token: 0x06000246 RID: 582 RVA: 0x000025E1 File Offset: 0x000007E1
2371 {
2372 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2373 }
2374
2375 // Token: 0x06000247 RID: 583 RVA: 0x000079A4 File Offset: 0x00005BA4
2376 // Note: this type is marked as 'beforefieldinit'.
2378 {
2379 }
2380
2381 // Token: 0x04000200 RID: 512
2383
2384 // Token: 0x04000201 RID: 513
2386 private string <Name>k__BackingField;
2387
2388 // Token: 0x04000202 RID: 514
2390 private string <Meta>k__BackingField;
2391
2392 // Token: 0x04000203 RID: 515
2394 private int <SortOrder>k__BackingField;
2395
2396 // Token: 0x04000204 RID: 516
2398 private InputDeviceClass <DeviceClass>k__BackingField;
2399
2400 // Token: 0x04000205 RID: 517
2402 private InputDeviceStyle <DeviceStyle>k__BackingField;
2403
2404 // Token: 0x04000206 RID: 518
2406 private Guid <GUID>k__BackingField;
2407
2408 // Token: 0x04000207 RID: 519
2410 private ulong <LastInputTick>k__BackingField;
2411
2412 // Token: 0x04000208 RID: 520
2414 private bool <IsActive>k__BackingField;
2415
2416 // Token: 0x04000209 RID: 521
2418 private bool <IsAttached>k__BackingField;
2419
2420 // Token: 0x0400020A RID: 522
2422 private bool <RawSticks>k__BackingField;
2423
2424 // Token: 0x0400020B RID: 523
2426
2427 // Token: 0x0400020C RID: 524
2430
2431 // Token: 0x0400020D RID: 525
2434
2435 // Token: 0x0400020E RID: 526
2437 private TwoAxisInputControl <LeftStick>k__BackingField;
2438
2439 // Token: 0x0400020F RID: 527
2441 private TwoAxisInputControl <RightStick>k__BackingField;
2442
2443 // Token: 0x04000210 RID: 528
2445 private TwoAxisInputControl <DPad>k__BackingField;
2446
2447 // Token: 0x04000211 RID: 529
2448 public bool Passive;
2449
2450 // Token: 0x04000212 RID: 530
2453
2454 // Token: 0x04000213 RID: 531
2456
2457 // Token: 0x04000214 RID: 532
2459
2460 // Token: 0x04000215 RID: 533
2462
2463 // Token: 0x04000216 RID: 534
2465
2466 // Token: 0x04000217 RID: 535
2468
2469 // Token: 0x04000218 RID: 536
2471
2472 // Token: 0x04000219 RID: 537
2474
2475 // Token: 0x0400021A RID: 538
2477
2478 // Token: 0x0400021B RID: 539
2480
2481 // Token: 0x0400021C RID: 540
2483
2484 // Token: 0x0400021D RID: 541
2486
2487 // Token: 0x0400021E RID: 542
2489
2490 // Token: 0x0400021F RID: 543
2492
2493 // Token: 0x04000220 RID: 544
2495
2496 // Token: 0x04000221 RID: 545
2498
2499 // Token: 0x04000222 RID: 546
2501
2502 // Token: 0x04000223 RID: 547
2504
2505 // Token: 0x04000224 RID: 548
2507
2508 // Token: 0x04000225 RID: 549
2510
2511 // Token: 0x04000226 RID: 550
2513
2514 // Token: 0x04000227 RID: 551
2516
2517 // Token: 0x04000228 RID: 552
2519
2520 // Token: 0x04000229 RID: 553
2522
2523 // Token: 0x0400022A RID: 554
2525
2526 // Token: 0x0400022B RID: 555
2528
2529 // Token: 0x0400022C RID: 556
2531
2532 // Token: 0x0400022D RID: 557
2534
2535 // Token: 0x0400022E RID: 558
2537
2538 // Token: 0x0400022F RID: 559
2540
2541 // Token: 0x0200002D RID: 45
2542 protected struct AnalogSnapshotEntry
2543 {
2544 // Token: 0x06000248 RID: 584 RVA: 0x000079B4 File Offset: 0x00005BB4
2546 {
2547 float num = this.maxValue;
2548 float num2 = this.minValue;
2549 this.maxValue = num;
2550 }
2551
2552 // Token: 0x04000230 RID: 560
2553 public float value;
2554
2555 // Token: 0x04000231 RID: 561
2556 public float maxValue;
2557
2558 // Token: 0x04000232 RID: 562
2559 public float minValue;
2560 }
2561 }
2562}
class f__AnonymousType0<< Count > j__TPar
InputControl cachedRightBumper
UnknownDeviceControl GetFirstPressedAnalog()
void UpdateRightStickWithValue(Vector2 value, ulong updateTick, float deltaTime)
InputDeviceStyle< DeviceStyle > k__BackingField
TwoAxisInputControl DPad
InputControl cachedLeftStickY
virtual int NumUnknownButtons
InputControl cachedDPadUp
bool HasControl(InputControlType controlType)
void ProcessLeftStick(ulong updateTick, float deltaTime)
InputDevice.AnalogSnapshotEntry[]< AnalogSnapshot > k__BackingField
InputDeviceClass DeviceClass
void ProcessRightStick(ulong updateTick, float deltaTime)
static InputControlType GetInputControlTypeByName(string inputControlName)
void UpdateRightStickWithRawValue(Vector2 value, ulong updateTick, float deltaTime)
void SetLightColor(Color color)
InputControl LeftStickUp
InputControl RightStickDown
InputControl cachedAction2
InputControl AddControl(InputControlType controlType, string handle)
InputControl cachedRightStickButton
void UpdateWithValue(InputControlType controlType, float value, ulong updateTick, float deltaTime)
void RemoveControl(InputControlType controlType)
InputControl LeftStickRight
readonly List< InputControl > controls
virtual void SetLightFlash(float flashOnDuration, float flashOffDuration)
void Vibrate(float intensity)
InputControl RightStickLeft
void UpdateLeftStickWithValue(Vector2 value, ulong updateTick, float deltaTime)
InputControl cachedLeftBumper
InputControl cachedLeftStickDown
InputControl cachedDPadY
string< Name > k__BackingField
InputDevice.AnalogSnapshotEntry[] AnalogSnapshot
ReadOnlyCollection< InputControl > Controls
Guid< GUID > k__BackingField
InputDevice(string name)
InputControl RightStickX
InputControl LeftStickButton
InputDeviceStyle DeviceStyle
InputControl cachedLeftStickRight
UnknownDeviceControl GetFirstPressedButton()
ReadOnlyCollection< InputControl >< Controls > k__BackingField
void ProcessDPad(ulong updateTick, float deltaTime)
TwoAxisInputControl< LeftStick > k__BackingField
InputControl cachedRightStickY
string< Meta > k__BackingField
bool< IsAttached > k__BackingField
InputControl cachedRightTrigger
InputControl GetControl(InputControlType controlType)
InputControl cachedDPadX
InputControl cachedRightStickRight
TwoAxisInputControl LeftStick
InputControl[]< ControlsByTarget > k__BackingField
InputControl cachedLeftStickUp
InputControl cachedAction1
InputControl cachedDPadDown
TwoAxisInputControl Direction
TwoAxisInputControl< DPad > k__BackingField
virtual float ReadRawAnalogValue(int index)
InputDevice(string name, bool rawSticks)
InputControl RightStickY
InputControl RightStickUp
InputControl cachedRightStickLeft
static readonly InputDevice Null
InputControl cachedDPadRight
InputControl RightStickRight
TwoAxisInputControl RightStick
InputControl RightBumper
InputDeviceClass< DeviceClass > k__BackingField
void Commit(ulong updateTick, float deltaTime)
void UpdateLeftStickWithRawValue(Vector2 value, ulong updateTick, float deltaTime)
virtual bool ReadRawButtonState(int index)
InputControl cachedAction4
InputControl LeftStickLeft
InputControl LeftStickDown
bool< RawSticks > k__BackingField
InputControl cachedDPadLeft
int< SortOrder > k__BackingField
InputControl LeftBumper
InputControl cachedRightStickX
virtual void Vibrate(float leftMotor, float rightMotor)
virtual void SetLightColor(float red, float green, float blue)
TwoAxisInputControl< RightStick > k__BackingField
InputControl cachedRightStickUp
virtual bool IsSupportedOnThisPlatform
InputControl cachedLeftTrigger
virtual void Update(ulong updateTick, float deltaTime)
InputControl AddControl(InputControlType controlType, string handle, float lowerDeadZone, float upperDeadZone)
InputControl RightStickButton
InputControl cachedLeftStickButton
bool LastInputAfter(InputDevice device)
InputControl cachedCommand
InputControl LeftTrigger
InputControl cachedRightStickDown
InputControl LeftStickX
InputControl cachedLeftStickLeft
void UpdateWithState(InputControlType controlType, bool state, ulong updateTick, float deltaTime)
InputControl cachedAction3
InputControl RightTrigger
bool< IsActive > k__BackingField
ulong< LastInputTick > k__BackingField
virtual int NumUnknownAnalogs
InputControl[] ControlsByTarget
InputControl GetControlByName(string controlName)
InputControl cachedLeftStickX
InputControl LeftStickY
bool UpdateWithValue(float value, ulong updateTick, float deltaTime)
void CommitWithState(bool state, ulong updateTick, float deltaTime)
void PrepareForUpdate(ulong updateTick)
void TrackMinMaxValue(float currentValue)
static Guid NewGuid()
Definition Guid.cs:15