forked from sh-akira/VirtualMotionCapture
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPipeCommands.cs
More file actions
1521 lines (1390 loc) · 45.6 KB
/
PipeCommands.cs
File metadata and controls
1521 lines (1390 loc) · 45.6 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace UnityMemoryMappedFile
{
public partial class PipeCommands
{
private static Dictionary<string, Type> commandTypeCache = new Dictionary<string, Type>();
public static Type GetCommandType(string commandStr)
{
if (commandTypeCache.TryGetValue(commandStr,out Type value))
{
return value;
}
var commands = typeof(PipeCommands).GetNestedTypes(System.Reflection.BindingFlags.Public);
foreach (var command in commands)
{
if (command.Name == commandStr)
{
commandTypeCache[commandStr] = command;
return command;
}
}
return null;
}
public class SetIsBeta
{
public bool IsPreRelease { get; set; }
public bool IsBeta { get; set; }
}
public class LoadVRM
{
public string Path { get; set; }
}
public class LoadRemoteVRM
{
public string Path { get; set; }
}
public class ReturnLoadVRM
{
public VRMData Data { get; set; }
}
public class ImportVRM
{
public string Path { get; set; }
}
public class InitializeCalibration { }
public class LoadVRMPath
{
public string Path { get; set; }
}
public class Calibrate
{
public CalibrateType CalibrateType { get; set; }
}
public class SelectCalibrateMode
{
public CalibrateType CalibrateType { get; set; }
}
public enum CalibrateType
{
Invalid = -1,
Default = 0,
FixedHand = 1,
FixedHandWithGround = 2,
Ipose = 3,
Tpose = 4,
}
public class EndCalibrate { }
public class QuitApplication { }
public class SetFloatValueBase { public float value { get; set; } }
public class SetLipSyncEnable { public bool enable { get; set; } }
public class GetLipSyncDevices { }
public class ReturnGetLipSyncDevices { public string[] Devices { get; set; } }
public class SetLipSyncDevice { public string device { get; set; } }
public class SetLipSyncGain : SetFloatValueBase { }
public class SetLipSyncMaxWeightEnable { public bool enable { get; set; } }
public class SetLipSyncWeightThreashold : SetFloatValueBase { }
public class SetLipSyncMaxWeightEmphasis { public bool enable { get; set; } }
public class ChangeBackgroundColor
{
public float r { get; set; }
public float g { get; set; }
public float b { get; set; }
public bool isCustom { get; set; }
}
public class SetBackgroundTransparent { }
public class SetWindowBorder { public bool enable { get; set; } }
public class SetWindowTopMost { public bool enable { get; set; } }
public class SetWindowClickThrough { public bool enable { get; set; } }
public class SetAutoBlinkEnable { public bool enable { get; set; } }
public class SetBlinkTimeMin : SetFloatValueBase { }
public class SetBlinkTimeMax : SetFloatValueBase { }
public class SetCloseAnimationTime : SetFloatValueBase { }
public class SetOpenAnimationTime : SetFloatValueBase { }
public class SetClosingTime : SetFloatValueBase { }
public class SetDefaultFace { public string face { get; set; } }
public class SaveSettings { public string Path { get; set; } }
public class LoadSettings { public string Path { get; set; } }
public class LoadCurrentSettings { }
public class LoadCustomBackgroundColor
{
public float r { get; set; }
public float g { get; set; }
public float b { get; set; }
}
public class LoadHideBorder { public bool enable { get; set; } }
public class LoadIsTopMost { public bool enable { get; set; } }
public class LoadSetWindowClickThrough { public bool enable { get; set; } }
public class LoadShowCameraGrid { public bool enable { get; set; } }
public class LoadCameraMirror { public bool enable { get; set; } }
public class LoadCameraFOV { public float fov { get; set; } }
public class LoadCameraSmooth { public float speed { get; set; } }
public class LoadLipSyncEnable { public bool enable { get; set; } }
public class LoadLipSyncDevice { public string device { get; set; } }
public class LoadLipSyncGain { public float gain { get; set; } }
public class LoadLipSyncMaxWeightEnable { public bool enable { get; set; } }
public class LoadLipSyncWeightThreashold { public float threashold { get; set; } }
public class LoadLipSyncMaxWeightEmphasis { public bool enable { get; set; } }
public class LoadAutoBlinkEnable { public bool enable { get; set; } }
public class LoadBlinkTimeMin { public float time { get; set; } }
public class LoadBlinkTimeMax { public float time { get; set; } }
public class LoadCloseAnimationTime { public float time { get; set; } }
public class LoadOpenAnimationTime { public float time { get; set; } }
public class LoadClosingTime { public float time { get; set; } }
public class LoadDefaultFace { public string face { get; set; } }
public class LoadControllerTouchPadPoints
{
public bool IsOculus { get; set; }
public List<UPoint> LeftPoints { get; set; }
public bool LeftCenterEnable { get; set; }
public List<UPoint> RightPoints { get; set; }
public bool RightCenterEnable { get; set; }
}
public class LoadControllerStickPoints
{
public List<UPoint> LeftPoints { get; set; }
public List<UPoint> RightPoints { get; set; }
}
public class LoadKeyActions { public List<KeyAction> KeyActions { get; set; } }
public class ChangeCamera { public CameraTypes type { get; set; } }
public class SetGridVisible { public bool enable { get; set; } }
public class SetCameraMirror { public bool enable { get; set; } }
public class SetCameraFOV : SetFloatValueBase { }
public class SetCameraSmooth : SetFloatValueBase { }
public class ResetCamera { }
public class KeyDown
{
public KeyConfig Config { get; set; }
}
public class KeyUp
{
public KeyConfig Config { get; set; }
}
public class SetControllerTouchPadPoints
{
public bool isStick { get; set; }
public List<UPoint> LeftPoints { get; set; }
public bool LeftCenterEnable { get; set; }
public List<UPoint> RightPoints { get; set; }
public bool RightCenterEnable { get; set; }
}
public class SetSkeletalInputEnable { public bool enable { get; set; } }
public class LoadSkeletalInputEnable { public bool enable { get; set; } }
public class StartHandCamera
{
public bool IsLeft { get; set; }
}
public class EndHandCamera { }
public class SetHandAngle
{
public bool LeftEnable { get; set; }
public bool RightEnable { get; set; }
public List<int> HandAngles { get; set; } //小指:第1関節,第3関節,第3関節,第3関節横,薬指:・・・・親指:・・・第3関節横 (20個)
}
public class StartKeyConfig { }
public class EndKeyConfig { }
public class StartKeySend { }
public class EndKeySend { }
public class SetKeyActions
{
public List<KeyAction> KeyActions { get; set; }
}
public class SetFace
{
public List<string> Keys { get; set; }
public List<float> Strength { get; set; }
}
public class GetFaceKeys { }
public class ReturnFaceKeys
{
public List<string> Keys { get; set; }
}
public class SetHandFreeOffset
{
public int LeftHandPositionX { get; set; }
public int LeftHandPositionY { get; set; }
public int LeftHandPositionZ { get; set; }
public int LeftHandRotationX { get; set; }
public int LeftHandRotationY { get; set; }
public int LeftHandRotationZ { get; set; }
public int RightHandPositionX { get; set; }
public int RightHandPositionY { get; set; }
public int RightHandPositionZ { get; set; }
public int RightHandRotationX { get; set; }
public int RightHandRotationY { get; set; }
public int RightHandRotationZ { get; set; }
public int SwivelOffset { get; set; }
}
public class GetCalibrationSetting { }
public class SetCalibrationSetting
{
public bool EnableOverrideBodyHeight { get; set; }
public int OverrideBodyHeight { get; set; }
public int PelvisOffsetAdjustY { get; set; }
public int PelvisOffsetAdjustZ { get; set; }
}
public class SetExternalCameraConfig
{
public float x { get; set; }
public float y { get; set; }
public float z { get; set; }
public float rx { get; set; }
public float ry { get; set; }
public float rz { get; set; }
public float fov { get; set; }
public string ControllerName { get; set; }
}
public class GetExternalCameraConfig
{
public string ControllerName { get; set; }
}
public class ExitControlPanel { }
public class GetTrackerSerialNumbers { }
public class ReturnTrackerSerialNumbers
{
public List<Tuple<string, string>> List { get; set; }
public SetTrackerSerialNumbers CurrentSetting { get; set; }
}
public class TrackerMoved
{
public string SerialNumber { get; set; }
}
public class SetTrackerSerialNumbers
{
public Tuple<string, string> Head { get; set; }
public Tuple<string, string> LeftHand { get; set; }
public Tuple<string, string> RightHand { get; set; }
public Tuple<string, string> Pelvis { get; set; }
public Tuple<string, string> LeftFoot { get; set; }
public Tuple<string, string> RightFoot { get; set; }
public Tuple<string, string> LeftElbow { get; set; }
public Tuple<string, string> RightElbow { get; set; }
public Tuple<string, string> LeftKnee { get; set; }
public Tuple<string, string> RightKnee { get; set; }
public Tuple<string, string> Chest { get; set; }
}
public class GetTrackerOffsets { }
public class SetTrackerOffsets
{
public float LeftHandTrackerOffsetToBottom { get; set; }
public float LeftHandTrackerOffsetToBodySide { get; set; }
public float RightHandTrackerOffsetToBottom { get; set; }
public float RightHandTrackerOffsetToBodySide { get; set; }
}
public class GetVirtualWebCamConfig { }
public class SetVirtualWebCamConfig
{
public bool Enabled { get; set; }
public bool Resize { get; set; }
public bool Mirroring { get; set; }
public int Buffering { get; set; }
}
public class GetWristRotationFixSetting { }
public class SetWristRotationFixSetting
{
public int UpperArmWeight { get; set; } // 1000倍した値 (0.05f -> 50)
public int ForearmWeight { get; set; } // 1000倍した値 (0.45f -> 450)
public int MaxAccumulatedTwist { get; set; } // そのまま (300)
}
public class GetResolutions { }
public class ReturnResolutions
{
public List<Tuple<int, int>> List { get; set; }
}
public class SetResolution
{
public int Width { get; set; }
public int Height { get; set; }
}
public class SetWindowNum
{
public int Num { get; set; }
}
public class TakePhoto
{
public int Width { get; set; }
public bool TransparentBackground { get; set; }
public string Directory { get; set; }
}
public class SetLightAngle
{
public float X { get; set; }
public float Y { get; set; }
}
public class ChangeLightColor
{
public float a { get; set; }
public float r { get; set; }
public float g { get; set; }
public float b { get; set; }
}
public class TrackerMovedRequest
{
public bool doSend { get; set; }
}
public class GetEyeTracking_TobiiOffsets { }
public class SetEyeTracking_TobiiOffsets
{
public float ScaleHorizontal { get; set; }
public float ScaleVertical { get; set; }
public float OffsetHorizontal { get; set; }
public float OffsetVertical { get; set; }
}
public class EyeTracking_TobiiCalibration { }
public class GetEyeTracking_ViveProEyeOffsets { }
public class SetEyeTracking_ViveProEyeOffsets
{
public float ScaleHorizontal { get; set; }
public float ScaleVertical { get; set; }
public float OffsetHorizontal { get; set; }
public float OffsetVertical { get; set; }
}
public class GetEyeTracking_ViveProEyeUseEyelidMovements { }
public class SetEyeTracking_ViveProEyeUseEyelidMovements
{
public bool Use { get; set; }
}
public class GetEyeTracking_ViveProEyeEnable { }
public class SetEyeTracking_ViveProEyeEnable
{
public bool enable { get; set; }
}
public class ImportCameraPlus
{
public float x { get; set; }
public float y { get; set; }
public float z { get; set; }
public float rx { get; set; }
public float ry { get; set; }
public float rz { get; set; }
public float fov { get; set; }
}
public class ExportCameraPlus { }
public class ReturnExportCameraPlus
{
public float x { get; set; }
public float y { get; set; }
public float z { get; set; }
public float rx { get; set; }
public float ry { get; set; }
public float rz { get; set; }
public float fov { get; set; }
}
public class GetEnableExternalMotionSender { }
public class EnableExternalMotionSender
{
public bool enable { get; set; }
}
public class GetExternalMotionSenderAddress { }
public class ChangeExternalMotionSenderAddress
{
public string address { get; set; }
public int port { get; set; }
public int PeriodStatus { get; set; }
public int PeriodRoot { get; set; }
public int PeriodBone { get; set; }
public int PeriodBlendShape { get; set; }
public int PeriodCamera { get; set; }
public int PeriodDevices { get; set; }
public string OptionString { get; set; } //OK
public bool ResponderEnable { get; set; }
}
public class GetVMCProtocolReceiverSetting
{
public int Index { get; set; }
}
public class SetVMCProtocolReceiverSetting
{
public int Index { get; set; }
public bool Enable { get; set; }
public int Port { get; set; }
public int DelayMs { get; set; }
public string Name { get; set; }
public bool ApplyRootRotation { get; set; }
public bool ApplyRootPosition { get; set; }
public bool ApplySpine { get; set; }
public bool ApplyChest { get; set; }
public bool ApplyHead { get; set; }
public bool ApplyLeftArm { get; set; }
public bool ApplyRightArm { get; set; }
public bool ApplyLeftHand { get; set; }
public bool ApplyRightHand { get; set; }
public bool ApplyLeftLeg { get; set; }
public bool ApplyRightLeg { get; set; }
public bool ApplyLeftFoot { get; set; }
public bool ApplyRightFoot { get; set; }
public bool ApplyEye { get; set; }
public bool ApplyLeftFinger { get; set; }
public bool ApplyRightFinger { get; set; }
public bool CorrectHandBone { get; set; }
public bool UseBonePosition { get; set; }
public bool CorrectHipBone { get; set; }
public bool IgnoreDefaultBone { get; set; }
public bool ApplyBlendShape { get; set; }
public bool ApplyLookAt { get; set; }
public bool ApplyTracker { get; set; }
public bool ApplyCamera { get; set; }
public bool ApplyLight { get; set; }
public bool ApplyMidi { get; set; }
public bool ApplyStatus { get; set; }
public bool ApplyControl { get; set; }
public bool ApplySetting { get; set; }
public bool ApplyControllerInput { get; set; }
public bool ApplyKeyboardInput { get; set; }
}
public class GetVMCProtocolReceiverList { }
public class SetVMCProtocolReceiverList
{
public List<Tuple<bool, string, int>> Items { get; set; }
}
public class SetVMCProtocolReceiverEnable
{
public int Index { get; set; }
public bool Enable { get; set; }
}
public class RemoveVMCProtocolReceiver
{
public int Index { get; set; }
}
public class VMCProtocolReceiverRecenter
{
public int Index { get; set; }
}
public class GetExternalMotionReceiverRequester { }
public class ChangeExternalMotionReceiverRequester
{
public bool Enable { get; set; }
}
public class GetMidiCCBlendShape { }
public class SetMidiCCBlendShape
{
public List<string> BlendShapes { get; set; }
}
public class MidiCCKnobUpdate
{
public int channel { get; set; }
public int knobNo { get; set; }
public float value { get; set; }
}
public class GetMidiEnable { }
public class MidiEnable
{
public bool enable { get; set; }
}
public class GetEnableTrackingFilter { }
public class EnableTrackingFilter
{
public bool globalEnable { get; set; }
public bool hmdEnable { get; set; }
public bool controllerEnable { get; set; }
public bool trackerEnable { get; set; }
}
public class GetPauseTracking { }
public class PauseTracking
{
public bool enable { get; set; }
}
public class GetEnableModelModifier { }
public class EnableModelModifier
{
public bool fixKneeRotation { get; set; }
public bool fixElbowRotation { get; set; }
}
public class GetVirtualMotionTracker { }
public class SetVirtualMotionTracker
{
public bool enable { get; set; }
public int no { get; set; }
}
public class SetupVirtualMotionTracker
{
public bool install { get; set; }
}
public class ResultSetupVirtualMotionTracker
{
public string result { get; set; }
}
//-------------
public class GetStatusString { }
public class SetStatusString
{
public string StatusString { get; set; }
}
public class StatusStringChanged
{
public string StatusString { get; set; }
}
public class StatusStringChangedRequest
{
public bool doSend { get; set; }
}
public class GetHandleControllerAsTracker { }
public class EnableHandleControllerAsTracker
{
public bool HandleControllerAsTracker { get; set; }
}
public class GetTrackerReassignmentWhenChestAvailable { }
public class EnableTrackerReassignmentWhenChestAvailable
{
public bool TrackerReassignmentWhenChestAvailable { get; set; }
}
public class GetLaunchSteamVROnStartup { }
public class SetLaunchSteamVROnStartup
{
public bool Enable { get; set; }
}
public class GetQualitySettings { }
public class SetQualitySettings
{
public int antiAliasing { get; set; }
}
public class GetViveLipTrackingBlendShape { }
public class SetViveLipTrackingBlendShape
{
public List<string> LipShapes { get; set; }
public Dictionary<string, string> LipShapesToBlendShapeMap { get; set; }
}
public class GetViveLipTrackingEnable { }
public class SetViveLipTrackingEnable
{
public bool enable { get; set; }
}
public class GetAdvancedGraphicsOption { }
public class SetAdvancedGraphicsOption
{
public bool PPS_Enable { get; set; }
public bool Bloom_Enable { get; set; }
public float Bloom_Intensity { get; set; }
public float Bloom_Threshold { get; set; }
public bool DoF_Enable { get; set; }
public float DoF_FocusDistance { get; set; }
public float DoF_Aperture { get; set; }
public float DoF_FocusLength { get; set; }
public int DoF_MaxBlurSize { get; set; }
public bool CG_Enable { get; set; }
public float CG_Temperature { get; set; }
public float CG_Saturation { get; set; }
public float CG_Contrast { get; set; }
public float CG_Gamma { get; set; }
public bool Vignette_Enable { get; set; }
public float Vignette_Intensity { get; set; }
public float Vignette_Smoothness { get; set; }
public float Vignette_Roundness { get; set; }
public bool CA_Enable { get; set; }
public float CA_Intensity { get; set; }
public bool CA_FastMode { get; set; }
public float Bloom_Color_a { get; set; }
public float Bloom_Color_r { get; set; }
public float Bloom_Color_g { get; set; }
public float Bloom_Color_b { get; set; }
public float CG_ColorFilter_a { get; set; }
public float CG_ColorFilter_r { get; set; }
public float CG_ColorFilter_g { get; set; }
public float CG_ColorFilter_b { get; set; }
public float Vignette_Color_a { get; set; }
public float Vignette_Color_r { get; set; }
public float Vignette_Color_g { get; set; }
public float Vignette_Color_b { get; set; }
public bool TurnOffAmbientLight { get; set; }
}
public const int ErrorCountMax = 10000;
public class LogNotify {
public string condition { get; set; }
public string stackTrace { get; set; }
public NotifyLogTypes type { get; set; }
public int errorCount { get; set; }
}
public class SetLogNotifyLevel
{
public NotifyLogTypes type { get; set; }
}
public class Alive { }
public class GetModIsLoaded { }
public class ReturnModIsLoaded
{
public bool IsLoaded { get; set; }
}
public class GetModList { }
public class ReturnModList
{
public List<ModItem> ModList { get; set; }
}
public class ModSettingEvent
{
public string InstanceId { get; set; }
}
public class ShowCalibrationWindow { }
public class ShowPhotoWindow { }
public class VRMLoadStatus
{
public bool Valid { get; set; }
}
public class CalibrationResult
{
public CalibrateType Type { get; set; }
public float UserHeight { get; set; }
public string Message { get; set; }
}
public class OpenVRStatus
{
public bool DashboardOpened { get; set; }
}
}
public class ModItem
{
public string Name { get; set; }
public string Version { get; set; }
public string Author { get; set; }
public string AuthorURL { get; set; }
public string Description { get; set; }
public string PluginURL { get; set; }
public string InstanceId { get; set; }
public string AssemblyPath { get; set; }
}
public enum NotifyLogTypes
{
Exception = 0,
Error = 1,
Assert = 2,
Warning = 3,
Log = 4,
}
public enum CameraTypes
{
Free, Front, Back, PositionFixed
}
public struct UPoint
{
public float x;
public float y;
}
public enum KeyTypes
{
Controller,
Keyboard,
Mouse,
Midi,
MidiCC,
}
public enum KeyActionTypes
{
Face,
Hand,
}
[Serializable]
public class KeyConfig
{
public static string Language = "Japanese";
public KeyTypes type;
public KeyActionTypes actionType;
public int keyCode;
public string keyName;
public bool isLeft;
public int keyIndex;
[OptionalField]
public bool isOculus;
[OptionalField]
public bool isTouch;
public bool IsEqual(KeyConfig k)
{
return type == k.type && actionType == k.actionType && keyCode == k.keyCode && isLeft == k.isLeft && keyIndex == k.keyIndex && isOculus == k.isOculus && isTouch == k.isTouch && keyName == k.keyName;
}
public bool IsEqualKeyCode(KeyConfig k)
{
return type == k.type && keyCode == k.keyCode && isLeft == k.isLeft && keyIndex == k.keyIndex && isOculus == k.isOculus && isTouch == k.isTouch && keyName == k.keyName;
}
private static string[] KeyCodeString = new string[] {
"",
"左クリック",
"右クリック",
"コントロールブレイク",
"中クリック",
"マウス第一拡張",
"マウス第二拡張",
"未定義",
"BackSpace",
"Tab",
"予約済",
"予約済",
"Clear",
"Enter",
"未定義",
"未定義",
"Shift",
"Ctrl",
"Alt",
"Pause",
"CapsLock",
"IME かな",
"未定義",
"IME Junja",
"IME ファイナル",
"IME 漢字",
"未定義",
"Esc",
"IME 変換",
"IME 無変換",
"IME 使用可能",
"IME モード変更要求",
"スペース",
"Page Up",
"Page Down",
"End",
"Home",
"←",
"↑",
"→",
"↓",
"Select",
"Print",
"Execute",
"PrintScreen",
"Insert",
"Delete",
"Help",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"未定義",
"未定義",
"未定義",
"未定義",
"未定義",
"未定義",
"未定義",
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
"左Windows",
"右Windows",
"アプリケーション",
"予約済",
"Sleep",
"テンキー0",
"テンキー1",
"テンキー2",
"テンキー3",
"テンキー4",
"テンキー5",
"テンキー6",
"テンキー7",
"テンキー8",
"テンキー9",
"テンキー*",
"テンキー+",
"区切り記号",
"テンキー-",
"テンキー.",
"テンキー/",
"F1",
"F2",
"F3",
"F4",
"F5",
"F6",
"F7",
"F8",
"F9",
"F10",
"F11",
"F12",
"F13",
"F14",
"F15",
"F16",
"F17",
"F18",
"F19",
"F20",
"F21",
"F22",
"F23",
"F24",
"未割当",
"未割当",
"未割当",
"未割当",
"未割当",
"未割当",
"未割当",
"未割当",
"NumLock",
"ScrollLock",
"OEM固有",
"OEM固有",
"OEM固有",
"OEM固有",
"OEM固有",
"未割当",
"未割当",
"未割当",
"未割当",
"未割当",
"未割当",
"未割当",
"未割当",
"未割当",
"左Shift",
"右Shift",
"左Ctrl",
"右Ctrl",
"左Alt",
"右Alt",
"ブラウザー戻る",
"ブラウザー進む",
"ブラウザー更新",
"ブラウザー停止",
"ブラウザー検索",
"ブラウザーお気に入り",
"ブラウザー開始/ホーム",
"音量ミュート",
"音量ダウン",
"音量アップ",
"次のトラック",
"前のトラック",
"メディア停止",
"メディア再生/一時停止",
"メール",
"メディア選択",
"アプリケーション1",
"アプリケーション2",
"予約済",
"予約済",
"[:*]",
"[;+]",
"[,<]",
"[-=]",
"[.>]",
"[/?]",
"[@`]",
"予約済",
"予約済",