OpenVR SDK

Please note: Valve, the Valve logo, OpenVR, the OpenVR logo, SteamVR and the SteamVR logo are trademarks and/or registered trademarks of Valve Corporation. Please have a look at the homepage to read about and download the SDK.

Code date: 29th January 2019, SDK date: 19th April 2021

As of 1st September 2021 some features of the SDK are not yet included.

 

   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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
unit openVR_header;

{$Z4}

interface

const

// internal

{$ifdef Win32}
  DLL_FILENAME = 'openvr_api.dll';
{$else}
  DLL_FILENAME = 'openvr_api_64.dll';
{$endif}


// OpenVR Constants

  k_unTrackingStringSize = 32;
  k_unMaxDriverDebugResponseSize = 32768;
  k_unTrackedDeviceIndex_Hmd = 0;
  k_unMaxTrackedDeviceCount = 16;
  k_unTrackedDeviceIndexOther = 4294967294;
  k_unTrackedDeviceIndexInvalid = 4294967295;
  k_unMaxPropertyStringSize = 32768;
  k_unControllerStateAxisCount = 5;
  k_ulOverlayHandleInvalid = 0;
  k_unScreenshotHandleInvalid = 0;
  IVRSystem_Version: PAnsiChar = 'FnTable:IVRSystem_012';
  IVRExtendedDisplay_Version: PAnsiChar = 'FnTable:IVRExtendedDisplay_001';
  IVRTrackedCamera_Version: PAnsiChar = 'FnTable:IVRTrackedCamera_003';
  k_unMaxApplicationKeyLength = 128;
  k_pch_MimeType_HomeApp: PAnsiChar = 'vr/home';
  k_pch_MimeType_GameTheater: PAnsiChar = 'vr/game_theater';
  IVRApplications_Version: PAnsiChar = 'FnTable:IVRApplications_006';
  IVRChaperone_Version: PAnsiChar = 'FnTable:IVRChaperone_003';
  IVRChaperoneSetup_Version: PAnsiChar = 'FnTable:IVRChaperoneSetup_005';
  IVRCompositor_Version: PAnsiChar = 'FnTable:IVRCompositor_016';
  k_unVROverlayMaxKeyLength = 128;
  k_unVROverlayMaxNameLength = 128;
  k_unMaxOverlayCount = 64;
  IVROverlay_Version: PAnsiChar = 'FnTable:IVROverlay_013';
  k_pch_Controller_Component_GDC2015: PAnsiChar = 'gdc2015';
  k_pch_Controller_Component_Base: PAnsiChar = 'base';
  k_pch_Controller_Component_Tip: PAnsiChar = 'tip';
  k_pch_Controller_Component_HandGrip: PAnsiChar = 'handgrip';
  k_pch_Controller_Component_Status: PAnsiChar = 'status';
  IVRRenderModels_Version: PAnsiChar = 'FnTable:IVRRenderModels_005';
  k_unNotificationTextMaxSize = 256;
  IVRNotifications_Version: PAnsiChar = 'FnTable:IVRNotifications_002';
  k_unMaxSettingsKeyLength = 128;
  IVRSettings_Version: PAnsiChar = 'FnTable:IVRSettings_002';
  k_pch_SteamVR_Section: PAnsiChar = 'steamvr';
  k_pch_SteamVR_RequireHmd_String: PAnsiChar = 'requireHmd';
  k_pch_SteamVR_ForcedDriverKey_String: PAnsiChar = 'forcedDriver';
  k_pch_SteamVR_ForcedHmdKey_String: PAnsiChar = 'forcedHmd';
  k_pch_SteamVR_DisplayDebug_Bool: PAnsiChar = 'displayDebug';
  k_pch_SteamVR_DebugProcessPipe_String: PAnsiChar = 'debugProcessPipe';
  k_pch_SteamVR_EnableDistortion_Bool: PAnsiChar = 'enableDistortion';
  k_pch_SteamVR_DisplayDebugX_Int32: PAnsiChar = 'displayDebugX';
  k_pch_SteamVR_DisplayDebugY_Int32: PAnsiChar = 'displayDebugY';
  k_pch_SteamVR_SendSystemButtonToAllApps_Bool: PAnsiChar = 'sendSystemButtonToAllApps';
  k_pch_SteamVR_LogLevel_Int32: PAnsiChar = 'loglevel';
  k_pch_SteamVR_IPD_Float: PAnsiChar = 'ipd';
  k_pch_SteamVR_Background_String: PAnsiChar = 'background';
  k_pch_SteamVR_BackgroundCameraHeight_Float: PAnsiChar = 'backgroundCameraHeight';
  k_pch_SteamVR_BackgroundDomeRadius_Float: PAnsiChar = 'backgroundDomeRadius';
  k_pch_SteamVR_Environment_String: PAnsiChar = 'environment';
  k_pch_SteamVR_GridColor_String: PAnsiChar = 'gridColor';
  k_pch_SteamVR_PlayAreaColor_String: PAnsiChar = 'playAreaColor';
  k_pch_SteamVR_ShowStage_Bool: PAnsiChar = 'showStage';
  k_pch_SteamVR_ActivateMultipleDrivers_Bool: PAnsiChar = 'activateMultipleDrivers';
  k_pch_SteamVR_DirectMode_Bool: PAnsiChar = 'directMode';
  k_pch_SteamVR_DirectModeEdidVid_Int32: PAnsiChar = 'directModeEdidVid';
  k_pch_SteamVR_DirectModeEdidPid_Int32: PAnsiChar = 'directModeEdidPid';
  k_pch_SteamVR_UsingSpeakers_Bool: PAnsiChar = 'usingSpeakers';
  k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float: PAnsiChar = 'speakersForwardYawOffsetDegrees';
  k_pch_SteamVR_BaseStationPowerManagement_Bool: PAnsiChar = 'basestationPowerManagement';
  k_pch_SteamVR_NeverKillProcesses_Bool: PAnsiChar = 'neverKillProcesses';
  k_pch_SteamVR_RenderTargetMultiplier_Float: PAnsiChar = 'renderTargetMultiplier';
  k_pch_SteamVR_AllowReprojection_Bool: PAnsiChar = 'allowReprojection';
  k_pch_SteamVR_ForceReprojection_Bool: PAnsiChar = 'forceReprojection';
  k_pch_SteamVR_ForceFadeOnBadTracking_Bool: PAnsiChar = 'forceFadeOnBadTracking';
  k_pch_SteamVR_DefaultMirrorView_Int32: PAnsiChar = 'defaultMirrorView';
  k_pch_SteamVR_ShowMirrorView_Bool: PAnsiChar = 'showMirrorView';
  k_pch_SteamVR_MirrorViewGeometry_String: PAnsiChar = 'mirrorViewGeometry';
  k_pch_SteamVR_StartMonitorFromAppLaunch: PAnsiChar = 'startMonitorFromAppLaunch';
  k_pch_SteamVR_EnableHomeApp: PAnsiChar = 'enableHomeApp';
  k_pch_SteamVR_SetInitialDefaultHomeApp: PAnsiChar = 'setInitialDefaultHomeApp';
  k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32: PAnsiChar = 'CycleBackgroundImageTimeSec';
  k_pch_SteamVR_RetailDemo_Bool: PAnsiChar = 'retailDemo';
  k_pch_Lighthouse_Section: PAnsiChar = 'driver_lighthouse';
  k_pch_Lighthouse_DisableIMU_Bool: PAnsiChar = 'disableimu';
  k_pch_Lighthouse_UseDisambiguation_String: PAnsiChar = 'usedisambiguation';
  k_pch_Lighthouse_DisambiguationDebug_Int32: PAnsiChar = 'disambiguationdebug';
  k_pch_Lighthouse_PrimaryBasestation_Int32: PAnsiChar = 'primarybasestation';
  k_pch_Lighthouse_DBHistory_Bool: PAnsiChar = 'dbhistory';
  k_pch_Null_Section: PAnsiChar = 'driver_null';
  k_pch_Null_EnableNullDriver_Bool: PAnsiChar = 'enable';
  k_pch_Null_SerialNumber_String: PAnsiChar = 'serialNumber';
  k_pch_Null_ModelNumber_String: PAnsiChar = 'modelNumber';
  k_pch_Null_WindowX_Int32: PAnsiChar = 'windowX';
  k_pch_Null_WindowY_Int32: PAnsiChar = 'windowY';
  k_pch_Null_WindowWidth_Int32: PAnsiChar = 'windowWidth';
  k_pch_Null_WindowHeight_Int32: PAnsiChar = 'windowHeight';
  k_pch_Null_RenderWidth_Int32: PAnsiChar = 'renderWidth';
  k_pch_Null_RenderHeight_Int32: PAnsiChar = 'renderHeight';
  k_pch_Null_SecondsFromVsyncToPhotons_Float: PAnsiChar = 'secondsFromVsyncToPhotons';
  k_pch_Null_DisplayFrequency_Float: PAnsiChar = 'displayFrequency';
  k_pch_UserInterface_Section: PAnsiChar = 'userinterface';
  k_pch_UserInterface_StatusAlwaysOnTop_Bool: PAnsiChar = 'StatusAlwaysOnTop';
  k_pch_UserInterface_Screenshots_Bool: PAnsiChar = 'screenshots';
  k_pch_UserInterface_ScreenshotType_Int: PAnsiChar = 'screenshotType';
  k_pch_Notifications_Section: PAnsiChar = 'notifications';
  k_pch_Notifications_DoNotDisturb_Bool: PAnsiChar = 'DoNotDisturb';
  k_pch_Keyboard_Section: PAnsiChar = 'keyboard';
  k_pch_Keyboard_TutorialCompletions: PAnsiChar = 'TutorialCompletions';
  k_pch_Keyboard_ScaleX: PAnsiChar = 'ScaleX';
  k_pch_Keyboard_ScaleY: PAnsiChar = 'ScaleY';
  k_pch_Keyboard_OffsetLeftX: PAnsiChar = 'OffsetLeftX';
  k_pch_Keyboard_OffsetRightX: PAnsiChar = 'OffsetRightX';
  k_pch_Keyboard_OffsetY: PAnsiChar = 'OffsetY';
  k_pch_Keyboard_Smoothing: PAnsiChar = 'Smoothing';
  k_pch_Perf_Section: PAnsiChar = 'perfcheck';
  k_pch_Perf_HeuristicActive_Bool: PAnsiChar = 'heuristicActive';
  k_pch_Perf_NotifyInHMD_Bool: PAnsiChar = 'warnInHMD';
  k_pch_Perf_NotifyOnlyOnce_Bool: PAnsiChar = 'warnOnlyOnce';
  k_pch_Perf_AllowTimingStore_Bool: PAnsiChar = 'allowTimingStore';
  k_pch_Perf_SaveTimingsOnExit_Bool: PAnsiChar = 'saveTimingsOnExit';
  k_pch_Perf_TestData_Float: PAnsiChar = 'perfTestData';
  k_pch_CollisionBounds_Section: PAnsiChar = 'collisionBounds';
  k_pch_CollisionBounds_Style_Int32: PAnsiChar = 'CollisionBoundsStyle';
  k_pch_CollisionBounds_GroundPerimeterOn_Bool: PAnsiChar = 'CollisionBoundsGroundPerimeterOn';
  k_pch_CollisionBounds_CenterMarkerOn_Bool: PAnsiChar = 'CollisionBoundsCenterMarkerOn';
  k_pch_CollisionBounds_PlaySpaceOn_Bool: PAnsiChar = 'CollisionBoundsPlaySpaceOn';
  k_pch_CollisionBounds_FadeDistance_Float: PAnsiChar = 'CollisionBoundsFadeDistance';
  k_pch_CollisionBounds_ColorGammaR_Int32: PAnsiChar = 'CollisionBoundsColorGammaR';
  k_pch_CollisionBounds_ColorGammaG_Int32: PAnsiChar = 'CollisionBoundsColorGammaG';
  k_pch_CollisionBounds_ColorGammaB_Int32: PAnsiChar = 'CollisionBoundsColorGammaB';
  k_pch_CollisionBounds_ColorGammaA_Int32: PAnsiChar = 'CollisionBoundsColorGammaA';
  k_pch_Camera_Section: PAnsiChar = 'camera';
  k_pch_Camera_EnableCamera_Bool: PAnsiChar = 'enableCamera';
  k_pch_Camera_EnableCameraInDashboard_Bool: PAnsiChar = 'enableCameraInDashboard';
  k_pch_Camera_EnableCameraForCollisionBounds_Bool: PAnsiChar = 'enableCameraForCollisionBounds';
  k_pch_Camera_EnableCameraForRoomView_Bool: PAnsiChar = 'enableCameraForRoomView';
  k_pch_Camera_BoundsColorGammaR_Int32: PAnsiChar = 'cameraBoundsColorGammaR';
  k_pch_Camera_BoundsColorGammaG_Int32: PAnsiChar = 'cameraBoundsColorGammaG';
  k_pch_Camera_BoundsColorGammaB_Int32: PAnsiChar = 'cameraBoundsColorGammaB';
  k_pch_Camera_BoundsColorGammaA_Int32: PAnsiChar = 'cameraBoundsColorGammaA';
  k_pch_Camera_BoundsStrength_Int32: PAnsiChar = 'cameraBoundsStrength';
  k_pch_audio_Section: PAnsiChar = 'audio';
  k_pch_audio_OnPlaybackDevice_String: PAnsiChar = 'onPlaybackDevice';
  k_pch_audio_OnRecordDevice_String: PAnsiChar = 'onRecordDevice';
  k_pch_audio_OnPlaybackMirrorDevice_String: PAnsiChar = 'onPlaybackMirrorDevice';
  k_pch_audio_OffPlaybackDevice_String: PAnsiChar = 'offPlaybackDevice';
  k_pch_audio_OffRecordDevice_String: PAnsiChar = 'offRecordDevice';
  k_pch_audio_VIVEHDMIGain: PAnsiChar = 'viveHDMIGain';
  k_pch_Power_Section: PAnsiChar = 'power';
  k_pch_Power_PowerOffOnExit_Bool: PAnsiChar = 'powerOffOnExit';
  k_pch_Power_TurnOffScreensTimeout_Float: PAnsiChar = 'turnOffScreensTimeout';
  k_pch_Power_TurnOffControllersTimeout_Float: PAnsiChar = 'turnOffControllersTimeout';
  k_pch_Power_ReturnToWatchdogTimeout_Float: PAnsiChar = 'returnToWatchdogTimeout';
  k_pch_Power_AutoLaunchSteamVROnButtonPress: PAnsiChar = 'autoLaunchSteamVROnButtonPress';
  k_pch_Dashboard_Section: PAnsiChar = 'dashboard';
  k_pch_Dashboard_EnableDashboard_Bool: PAnsiChar = 'enableDashboard';
  k_pch_Dashboard_ArcadeMode_Bool: PAnsiChar = 'arcadeMode';
  k_pch_modelskin_Section: PAnsiChar = 'modelskins';
  IVRScreenshots_Version: PAnsiChar = 'IVRScreenshots_001';
  IVRResources_Version: PAnsiChar = 'IVRResources_001';

// OpenVR Enums

type
  PUInt64 = ^UInt64;
  PUInt32 = ^UInt32;
  PUInt16 = ^UInt16;
  PUInt8 = ^UInt8;

  PInt64 = ^Int64;
  PInt32 = ^Int32;
  PInt16 = ^Int16;
  PInt8 = ^Int8;

  TEVREye = (EVREye_Eye_Left = 0, EVREye_Eye_Right = 1);

  TEGraphicsAPIConvention =
  (
    EGraphicsAPIConvention_API_DirectX = 0,
    EGraphicsAPIConvention_API_OpenGL = 1
  );

  TEColorSpace =
  (
    EColorSpace_ColorSpace_Auto = 0,
    EColorSpace_ColorSpace_Gamma = 1,
    EColorSpace_ColorSpace_Linear = 2
  );

  TETrackingResult =
  (
    ETrackingResult_TrackingResult_Uninitialized = 1,
    ETrackingResult_TrackingResult_Calibrating_InProgress = 100,
    ETrackingResult_TrackingResult_Calibrating_OutOfRange = 101,
    ETrackingResult_TrackingResult_Running_OK = 200,
    ETrackingResult_TrackingResult_Running_OutOfRange = 201
  );

  TETrackedDeviceClass =
  (
    ETrackedDeviceClass_TrackedDeviceClass_Invalid = 0,
    ETrackedDeviceClass_TrackedDeviceClass_HMD = 1,
    ETrackedDeviceClass_TrackedDeviceClass_Controller = 2,
    ETrackedDeviceClass_TrackedDeviceClass_TrackingReference = 4,
    ETrackedDeviceClass_TrackedDeviceClass_Count = 5,
    ETrackedDeviceClass_TrackedDeviceClass_Other = 1000
  );

  TETrackedControllerRole =
  (
    ETrackedControllerRole_TrackedControllerRole_Invalid = 0,
    ETrackedControllerRole_TrackedControllerRole_LeftHand = 1,
    ETrackedControllerRole_TrackedControllerRole_RightHand = 2
  );

  TETrackingUniverseOrigin =
  (
    ETrackingUniverseOrigin_TrackingUniverseSeated = 0,
    ETrackingUniverseOrigin_TrackingUniverseStanding = 1,
    ETrackingUniverseOrigin_TrackingUniverseRawAndUncalibrated = 2
  );

  TETrackedDeviceProperty =
  (
    ETrackedDeviceProperty_Prop_TrackingSystemName_String = 1000,
    ETrackedDeviceProperty_Prop_ModelNumber_String = 1001,
    ETrackedDeviceProperty_Prop_SerialNumber_String = 1002,
    ETrackedDeviceProperty_Prop_RenderModelName_String = 1003,
    ETrackedDeviceProperty_Prop_WillDriftInYaw_Bool = 1004,
    ETrackedDeviceProperty_Prop_ManufacturerName_String = 1005,
    ETrackedDeviceProperty_Prop_TrackingFirmwareVersion_String = 1006,
    ETrackedDeviceProperty_Prop_HardwareRevision_String = 1007,
    ETrackedDeviceProperty_Prop_AllWirelessDongleDescriptions_String = 1008,
    ETrackedDeviceProperty_Prop_ConnectedWirelessDongle_String = 1009,
    ETrackedDeviceProperty_Prop_DeviceIsWireless_Bool = 1010,
    ETrackedDeviceProperty_Prop_DeviceIsCharging_Bool = 1011,
    ETrackedDeviceProperty_Prop_DeviceBatteryPercentage_Float = 1012,
    ETrackedDeviceProperty_Prop_StatusDisplayTransform_Matrix34 = 1013,
    ETrackedDeviceProperty_Prop_Firmware_UpdateAvailable_Bool = 1014,
    ETrackedDeviceProperty_Prop_Firmware_ManualUpdate_Bool = 1015,
    ETrackedDeviceProperty_Prop_Firmware_ManualUpdateURL_String = 1016,
    ETrackedDeviceProperty_Prop_HardwareRevision_Uint64 = 1017,
    ETrackedDeviceProperty_Prop_FirmwareVersion_Uint64 = 1018,
    ETrackedDeviceProperty_Prop_FPGAVersion_Uint64 = 1019,
    ETrackedDeviceProperty_Prop_VRCVersion_Uint64 = 1020,
    ETrackedDeviceProperty_Prop_RadioVersion_Uint64 = 1021,
    ETrackedDeviceProperty_Prop_DongleVersion_Uint64 = 1022,
    ETrackedDeviceProperty_Prop_BlockServerShutdown_Bool = 1023,
    ETrackedDeviceProperty_Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024,
    ETrackedDeviceProperty_Prop_ContainsProximitySensor_Bool = 1025,
    ETrackedDeviceProperty_Prop_DeviceProvidesBatteryStatus_Bool = 1026,
    ETrackedDeviceProperty_Prop_DeviceCanPowerOff_Bool = 1027,
    ETrackedDeviceProperty_Prop_Firmware_ProgrammingTarget_String = 1028,
    ETrackedDeviceProperty_Prop_DeviceClass_Int32 = 1029,
    ETrackedDeviceProperty_Prop_HasCamera_Bool = 1030,
    ETrackedDeviceProperty_Prop_DriverVersion_String = 1031,
    ETrackedDeviceProperty_Prop_Firmware_ForceUpdateRequired_Bool = 1032,
    ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool = 2000,
    ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float = 2001,
    ETrackedDeviceProperty_Prop_DisplayFrequency_Float = 2002,
    ETrackedDeviceProperty_Prop_UserIpdMeters_Float = 2003,
    ETrackedDeviceProperty_Prop_CurrentUniverseId_Uint64 = 2004,
    ETrackedDeviceProperty_Prop_PreviousUniverseId_Uint64 = 2005,
    ETrackedDeviceProperty_Prop_DisplayFirmwareVersion_Uint64 = 2006,
    ETrackedDeviceProperty_Prop_IsOnDesktop_Bool = 2007,
    ETrackedDeviceProperty_Prop_DisplayMCType_Int32 = 2008,
    ETrackedDeviceProperty_Prop_DisplayMCOffset_Float = 2009,
    ETrackedDeviceProperty_Prop_DisplayMCScale_Float = 2010,
    ETrackedDeviceProperty_Prop_EdidVendorID_Int32 = 2011,
    ETrackedDeviceProperty_Prop_DisplayMCImageLeft_String = 2012,
    ETrackedDeviceProperty_Prop_DisplayMCImageRight_String = 2013,
    ETrackedDeviceProperty_Prop_DisplayGCBlackClamp_Float = 2014,
    ETrackedDeviceProperty_Prop_EdidProductID_Int32 = 2015,
    ETrackedDeviceProperty_Prop_CameraToHeadTransform_Matrix34 = 2016,
    ETrackedDeviceProperty_Prop_DisplayGCType_Int32 = 2017,
    ETrackedDeviceProperty_Prop_DisplayGCOffset_Float = 2018,
    ETrackedDeviceProperty_Prop_DisplayGCScale_Float = 2019,
    ETrackedDeviceProperty_Prop_DisplayGCPrescale_Float = 2020,
    ETrackedDeviceProperty_Prop_DisplayGCImage_String = 2021,
    ETrackedDeviceProperty_Prop_LensCenterLeftU_Float = 2022,
    ETrackedDeviceProperty_Prop_LensCenterLeftV_Float = 2023,
    ETrackedDeviceProperty_Prop_LensCenterRightU_Float = 2024,
    ETrackedDeviceProperty_Prop_LensCenterRightV_Float = 2025,
    ETrackedDeviceProperty_Prop_UserHeadToEyeDepthMeters_Float = 2026,
    ETrackedDeviceProperty_Prop_CameraFirmwareVersion_Uint64 = 2027,
    ETrackedDeviceProperty_Prop_CameraFirmwareDescription_String = 2028,
    ETrackedDeviceProperty_Prop_DisplayFPGAVersion_Uint64 = 2029,
    ETrackedDeviceProperty_Prop_DisplayBootloaderVersion_Uint64 = 2030,
    ETrackedDeviceProperty_Prop_DisplayHardwareVersion_Uint64 = 2031,
    ETrackedDeviceProperty_Prop_AudioFirmwareVersion_Uint64 = 2032,
    ETrackedDeviceProperty_Prop_CameraCompatibilityMode_Int32 = 2033,
    ETrackedDeviceProperty_Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034,
    ETrackedDeviceProperty_Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035,
    ETrackedDeviceProperty_Prop_DisplaySuppressed_Bool = 2036,
    ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000,
    ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001,
    ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002,
    ETrackedDeviceProperty_Prop_Axis1Type_Int32 = 3003,
    ETrackedDeviceProperty_Prop_Axis2Type_Int32 = 3004,
    ETrackedDeviceProperty_Prop_Axis3Type_Int32 = 3005,
    ETrackedDeviceProperty_Prop_Axis4Type_Int32 = 3006,
    ETrackedDeviceProperty_Prop_ControllerRoleHint_Int32 = 3007,
    ETrackedDeviceProperty_Prop_FieldOfViewLeftDegrees_Float = 4000,
    ETrackedDeviceProperty_Prop_FieldOfViewRightDegrees_Float = 4001,
    ETrackedDeviceProperty_Prop_FieldOfViewTopDegrees_Float = 4002,
    ETrackedDeviceProperty_Prop_FieldOfViewBottomDegrees_Float = 4003,
    ETrackedDeviceProperty_Prop_TrackingRangeMinimumMeters_Float = 4004,
    ETrackedDeviceProperty_Prop_TrackingRangeMaximumMeters_Float = 4005,
    ETrackedDeviceProperty_Prop_ModeLabel_String = 4006,
    ETrackedDeviceProperty_Prop_IconPathName_String = 5000,
    ETrackedDeviceProperty_Prop_NamedIconPathDeviceOff_String = 5001,
    ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearching_String = 5002,
    ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearchingAlert_String = 5003,
    ETrackedDeviceProperty_Prop_NamedIconPathDeviceReady_String = 5004,
    ETrackedDeviceProperty_Prop_NamedIconPathDeviceReadyAlert_String = 5005,
    ETrackedDeviceProperty_Prop_NamedIconPathDeviceNotReady_String = 5006,
    ETrackedDeviceProperty_Prop_NamedIconPathDeviceStandby_String = 5007,
    ETrackedDeviceProperty_Prop_NamedIconPathDeviceAlertLow_String = 5008,
    ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_Start = 10000,
    ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_End = 10999
  );

  PETrackedPropertyError = ^TETrackedPropertyError;
  TETrackedPropertyError =
  (
    ETrackedPropertyError_TrackedProp_Success = 0,
    ETrackedPropertyError_TrackedProp_WrongDataType = 1,
    ETrackedPropertyError_TrackedProp_WrongDeviceClass = 2,
    ETrackedPropertyError_TrackedProp_BufferTooSmall = 3,
    ETrackedPropertyError_TrackedProp_UnknownProperty = 4,
    ETrackedPropertyError_TrackedProp_InvalidDevice = 5,
    ETrackedPropertyError_TrackedProp_CouldNotContactServer = 6,
    ETrackedPropertyError_TrackedProp_ValueNotProvidedByDevice = 7,
    ETrackedPropertyError_TrackedProp_StringExceedsMaximumLength = 8,
    ETrackedPropertyError_TrackedProp_NotYetAvailable = 9
  );

  TEVRSubmitFlags =
  (
    EVRSubmitFlags_Submit_Default = 0,
    EVRSubmitFlags_Submit_LensDistortionAlreadyApplied = 1,
    EVRSubmitFlags_Submit_GlRenderBuffer = 2,
    EVRSubmitFlags_Submit_VulkanTexture = 4
  );

  TEVRState =
  (
    EVRState_VRState_Undefined = -1,
    EVRState_VRState_Off = 0,
    EVRState_VRState_Searching = 1,
    EVRState_VRState_Searching_Alert = 2,
    EVRState_VRState_Ready = 3,
    EVRState_VRState_Ready_Alert = 4,
    EVRState_VRState_NotReady = 5,
    EVRState_VRState_Standby = 6,
    EVRState_VRState_Ready_Alert_Low = 7
  );

  TEVREventType =
  (
    EVREventType_VREvent_None = 0,
    EVREventType_VREvent_TrackedDeviceActivated = 100,
    EVREventType_VREvent_TrackedDeviceDeactivated = 101,
    EVREventType_VREvent_TrackedDeviceUpdated = 102,
    EVREventType_VREvent_TrackedDeviceUserInteractionStarted = 103,
    EVREventType_VREvent_TrackedDeviceUserInteractionEnded = 104,
    EVREventType_VREvent_IpdChanged = 105,
    EVREventType_VREvent_EnterStandbyMode = 106,
    EVREventType_VREvent_LeaveStandbyMode = 107,
    EVREventType_VREvent_TrackedDeviceRoleChanged = 108,
    EVREventType_VREvent_WatchdogWakeUpRequested = 109,
    EVREventType_VREvent_LensDistortionChanged = 110,
    EVREventType_VREvent_ButtonPress = 200,
    EVREventType_VREvent_ButtonUnpress = 201,
    EVREventType_VREvent_ButtonTouch = 202,
    EVREventType_VREvent_ButtonUntouch = 203,
    EVREventType_VREvent_MouseMove = 300,
    EVREventType_VREvent_MouseButtonDown = 301,
    EVREventType_VREvent_MouseButtonUp = 302,
    EVREventType_VREvent_FocusEnter = 303,
    EVREventType_VREvent_FocusLeave = 304,
    EVREventType_VREvent_Scroll = 305,
    EVREventType_VREvent_TouchPadMove = 306,
    EVREventType_VREvent_OverlayFocusChanged = 307,
    EVREventType_VREvent_InputFocusCaptured = 400,
    EVREventType_VREvent_InputFocusReleased = 401,
    EVREventType_VREvent_SceneFocusLost = 402,
    EVREventType_VREvent_SceneFocusGained = 403,
    EVREventType_VREvent_SceneApplicationChanged = 404,
    EVREventType_VREvent_SceneFocusChanged = 405,
    EVREventType_VREvent_InputFocusChanged = 406,
    EVREventType_VREvent_SceneApplicationSecondaryRenderingStarted = 407,
    EVREventType_VREvent_HideRenderModels = 410,
    EVREventType_VREvent_ShowRenderModels = 411,
    EVREventType_VREvent_OverlayShown = 500,
    EVREventType_VREvent_OverlayHidden = 501,
    EVREventType_VREvent_DashboardActivated = 502,
    EVREventType_VREvent_DashboardDeactivated = 503,
    EVREventType_VREvent_DashboardThumbSelected = 504,
    EVREventType_VREvent_DashboardRequested = 505,
    EVREventType_VREvent_ResetDashboard = 506,
    EVREventType_VREvent_RenderToast = 507,
    EVREventType_VREvent_ImageLoaded = 508,
    EVREventType_VREvent_ShowKeyboard = 509,
    EVREventType_VREvent_HideKeyboard = 510,
    EVREventType_VREvent_OverlayGamepadFocusGained = 511,
    EVREventType_VREvent_OverlayGamepadFocusLost = 512,
    EVREventType_VREvent_OverlaySharedTextureChanged = 513,
    EVREventType_VREvent_DashboardGuideButtonDown = 514,
    EVREventType_VREvent_DashboardGuideButtonUp = 515,
    EVREventType_VREvent_ScreenshotTriggered = 516,
    EVREventType_VREvent_ImageFailed = 517,
    EVREventType_VREvent_DashboardOverlayCreated = 518,
    EVREventType_VREvent_RequestScreenshot = 520,
    EVREventType_VREvent_ScreenshotTaken = 521,
    EVREventType_VREvent_ScreenshotFailed = 522,
    EVREventType_VREvent_SubmitScreenshotToDashboard = 523,
    EVREventType_VREvent_ScreenshotProgressToDashboard = 524,
    EVREventType_VREvent_Notification_Shown = 600,
    EVREventType_VREvent_Notification_Hidden = 601,
    EVREventType_VREvent_Notification_BeginInteraction = 602,
    EVREventType_VREvent_Notification_Destroyed = 603,
    EVREventType_VREvent_Quit = 700,
    EVREventType_VREvent_ProcessQuit = 701,
    EVREventType_VREvent_QuitAborted_UserPrompt = 702,
    EVREventType_VREvent_QuitAcknowledged = 703,
    EVREventType_VREvent_DriverRequestedQuit = 704,
    EVREventType_VREvent_ChaperoneDataHasChanged = 800,
    EVREventType_VREvent_ChaperoneUniverseHasChanged = 801,
    EVREventType_VREvent_ChaperoneTempDataHasChanged = 802,
    EVREventType_VREvent_ChaperoneSettingsHaveChanged = 803,
    EVREventType_VREvent_SeatedZeroPoseReset = 804,
    EVREventType_VREvent_AudioSettingsHaveChanged = 820,
    EVREventType_VREvent_BackgroundSettingHasChanged = 850,
    EVREventType_VREvent_CameraSettingsHaveChanged = 851,
    EVREventType_VREvent_ReprojectionSettingHasChanged = 852,
    EVREventType_VREvent_ModelSkinSettingsHaveChanged = 853,
    EVREventType_VREvent_EnvironmentSettingsHaveChanged = 854,
    EVREventType_VREvent_PowerSettingsHaveChanged = 855,
    EVREventType_VREvent_StatusUpdate = 900,
    EVREventType_VREvent_MCImageUpdated = 1000,
    EVREventType_VREvent_FirmwareUpdateStarted = 1100,
    EVREventType_VREvent_FirmwareUpdateFinished = 1101,
    EVREventType_VREvent_KeyboardClosed = 1200,
    EVREventType_VREvent_KeyboardCharInput = 1201,
    EVREventType_VREvent_KeyboardDone = 1202,
    EVREventType_VREvent_ApplicationTransitionStarted = 1300,
    EVREventType_VREvent_ApplicationTransitionAborted = 1301,
    EVREventType_VREvent_ApplicationTransitionNewAppStarted = 1302,
    EVREventType_VREvent_ApplicationListUpdated = 1303,
    EVREventType_VREvent_ApplicationMimeTypeLoad = 1304,
    EVREventType_VREvent_Compositor_MirrorWindowShown = 1400,
    EVREventType_VREvent_Compositor_MirrorWindowHidden = 1401,
    EVREventType_VREvent_Compositor_ChaperoneBoundsShown = 1410,
    EVREventType_VREvent_Compositor_ChaperoneBoundsHidden = 1411,
    EVREventType_VREvent_TrackedCamera_StartVideoStream = 1500,
    EVREventType_VREvent_TrackedCamera_StopVideoStream = 1501,
    EVREventType_VREvent_TrackedCamera_PauseVideoStream = 1502,
    EVREventType_VREvent_TrackedCamera_ResumeVideoStream = 1503,
    EVREventType_VREvent_TrackedCamera_EditingSurface = 1550,
    EVREventType_VREvent_PerformanceTest_EnableCapture = 1600,
    EVREventType_VREvent_PerformanceTest_DisableCapture = 1601,
    EVREventType_VREvent_PerformanceTest_FidelityLevel = 1602,
    EVREventType_VREvent_VendorSpecific_Reserved_Start = 10000,
    EVREventType_VREvent_VendorSpecific_Reserved_End = 19999
  );

  TEDeviceActivityLevel =
  (
    EDeviceActivityLevel_k_EDeviceActivityLevel_Unknown = -1,
    EDeviceActivityLevel_k_EDeviceActivityLevel_Idle = 0,
    EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction = 1,
    EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction_Timeout = 2,
    EDeviceActivityLevel_k_EDeviceActivityLevel_Standby = 3
  );

  TEVRButtonId =
  (
    EVRButtonId_k_EButton_System = 0,
    EVRButtonId_k_EButton_ApplicationMenu = 1,
    EVRButtonId_k_EButton_Grip = 2,
    EVRButtonId_k_EButton_DPad_Left = 3,
    EVRButtonId_k_EButton_DPad_Up = 4,
    EVRButtonId_k_EButton_DPad_Right = 5,
    EVRButtonId_k_EButton_DPad_Down = 6,
    EVRButtonId_k_EButton_A = 7,
    EVRButtonId_k_EButton_ProximitySensor = 31,
    EVRButtonId_k_EButton_Axis0 = 32,
    EVRButtonId_k_EButton_Axis1 = 33,
    EVRButtonId_k_EButton_Axis2 = 34,
    EVRButtonId_k_EButton_Axis3 = 35,
    EVRButtonId_k_EButton_Axis4 = 36,
    EVRButtonId_k_EButton_SteamVR_Touchpad = 32,
    EVRButtonId_k_EButton_SteamVR_Trigger = 33,
    EVRButtonId_k_EButton_Dashboard_Back = 2,
    EVRButtonId_k_EButton_Max = 64
  );

  TEVRMouseButton =
  (
    EVRMouseButton_VRMouseButton_Left = 1,
    EVRMouseButton_VRMouseButton_Right = 2,
    EVRMouseButton_VRMouseButton_Middle = 4
  );

  TEVRControllerAxisType =
  (
    EVRControllerAxisType_k_eControllerAxis_None = 0,
    EVRControllerAxisType_k_eControllerAxis_TrackPad = 1,
    EVRControllerAxisType_k_eControllerAxis_Joystick = 2,
    EVRControllerAxisType_k_eControllerAxis_Trigger = 3
  );

  TEVRControllerEventOutputType =
  (
    EVRControllerEventOutputType_ControllerEventOutput_OSEvents = 0,
    EVRControllerEventOutputType_ControllerEventOutput_VREvents = 1
  );

  TECollisionBoundsStyle =
  (
    ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_BEGINNER = 0,
    ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_INTERMEDIATE = 1,
    ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_SQUARES = 2,
    ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_ADVANCED = 3,
    ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_NONE = 4,
    ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_COUNT = 5
  );

  TEVROverlayError =
  (
    EVROverlayError_VROverlayError_None = 0,
    EVROverlayError_VROverlayError_UnknownOverlay = 10,
    EVROverlayError_VROverlayError_InvalidHandle = 11,
    EVROverlayError_VROverlayError_PermissionDenied = 12,
    EVROverlayError_VROverlayError_OverlayLimitExceeded = 13,
    EVROverlayError_VROverlayError_WrongVisibilityType = 14,
    EVROverlayError_VROverlayError_KeyTooLong = 15,
    EVROverlayError_VROverlayError_NameTooLong = 16,
    EVROverlayError_VROverlayError_KeyInUse = 17,
    EVROverlayError_VROverlayError_WrongTransformType = 18,
    EVROverlayError_VROverlayError_InvalidTrackedDevice = 19,
    EVROverlayError_VROverlayError_InvalidParameter = 20,
    EVROverlayError_VROverlayError_ThumbnailCantBeDestroyed = 21,
    EVROverlayError_VROverlayError_ArrayTooSmall = 22,
    EVROverlayError_VROverlayError_RequestFailed = 23,
    EVROverlayError_VROverlayError_InvalidTexture = 24,
    EVROverlayError_VROverlayError_UnableToLoadFile = 25,
    EVROverlayError_VROverlayError_KeyboardAlreadyInUse = 26,
    EVROverlayError_VROverlayError_NoNeighbor = 27
  );

  TEVRApplicationType =
  (
    EVRApplicationType_VRApplication_Other = 0,
    EVRApplicationType_VRApplication_Scene = 1,
    EVRApplicationType_VRApplication_Overlay = 2,
    EVRApplicationType_VRApplication_Background = 3,
    EVRApplicationType_VRApplication_Utility = 4,
    EVRApplicationType_VRApplication_VRMonitor = 5,
    EVRApplicationType_VRApplication_SteamWatchdog = 6,
    EVRApplicationType_VRApplication_Max = 7
  );

  TEVRFirmwareError =
  (
    EVRFirmwareError_VRFirmwareError_None = 0,
    EVRFirmwareError_VRFirmwareError_Success = 1,
    EVRFirmwareError_VRFirmwareError_Fail = 2
  );

  TEVRNotificationError =
  (
    EVRNotificationError_VRNotificationError_OK = 0,
    EVRNotificationError_VRNotificationError_InvalidNotificationId = 100,
    EVRNotificationError_VRNotificationError_NotificationQueueFull = 101,
    EVRNotificationError_VRNotificationError_InvalidOverlayHandle = 102,
    EVRNotificationError_VRNotificationError_SystemWithUserValueAlreadyExists = 103
  );

  PEVRInitError = ^TEVRInitError;
  TEVRInitError =
  (
    EVRInitError_VRInitError_None = 0,
    EVRInitError_VRInitError_Unknown = 1,
    EVRInitError_VRInitError_Init_InstallationNotFound = 100,
    EVRInitError_VRInitError_Init_InstallationCorrupt = 101,
    EVRInitError_VRInitError_Init_VRClientDLLNotFound = 102,
    EVRInitError_VRInitError_Init_FileNotFound = 103,
    EVRInitError_VRInitError_Init_FactoryNotFound = 104,
    EVRInitError_VRInitError_Init_InterfaceNotFound = 105,
    EVRInitError_VRInitError_Init_InvalidInterface = 106,
    EVRInitError_VRInitError_Init_UserConfigDirectoryInvalid = 107,
    EVRInitError_VRInitError_Init_HmdNotFound = 108,
    EVRInitError_VRInitError_Init_NotInitialized = 109,
    EVRInitError_VRInitError_Init_PathRegistryNotFound = 110,
    EVRInitError_VRInitError_Init_NoConfigPath = 111,
    EVRInitError_VRInitError_Init_NoLogPath = 112,
    EVRInitError_VRInitError_Init_PathRegistryNotWritable = 113,
    EVRInitError_VRInitError_Init_AppInfoInitFailed = 114,
    EVRInitError_VRInitError_Init_Retry = 115,
    EVRInitError_VRInitError_Init_InitCanceledByUser = 116,
    EVRInitError_VRInitError_Init_AnotherAppLaunching = 117,
    EVRInitError_VRInitError_Init_SettingsInitFailed = 118,
    EVRInitError_VRInitError_Init_ShuttingDown = 119,
    EVRInitError_VRInitError_Init_TooManyObjects = 120,
    EVRInitError_VRInitError_Init_NoServerForBackgroundApp = 121,
    EVRInitError_VRInitError_Init_NotSupportedWithCompositor = 122,
    EVRInitError_VRInitError_Init_NotAvailableToUtilityApps = 123,
    EVRInitError_VRInitError_Init_Internal = 124,
    EVRInitError_VRInitError_Init_HmdDriverIdIsNone = 125,
    EVRInitError_VRInitError_Init_HmdNotFoundPresenceFailed = 126,
    EVRInitError_VRInitError_Init_VRMonitorNotFound = 127,
    EVRInitError_VRInitError_Init_VRMonitorStartupFailed = 128,
    EVRInitError_VRInitError_Init_LowPowerWatchdogNotSupported = 129,
    EVRInitError_VRInitError_Init_InvalidApplicationType = 130,
    EVRInitError_VRInitError_Init_NotAvailableToWatchdogApps = 131,
    EVRInitError_VRInitError_Init_WatchdogDisabledInSettings = 132,
    EVRInitError_VRInitError_Driver_Failed = 200,
    EVRInitError_VRInitError_Driver_Unknown = 201,
    EVRInitError_VRInitError_Driver_HmdUnknown = 202,
    EVRInitError_VRInitError_Driver_NotLoaded = 203,
    EVRInitError_VRInitError_Driver_RuntimeOutOfDate = 204,
    EVRInitError_VRInitError_Driver_HmdInUse = 205,
    EVRInitError_VRInitError_Driver_NotCalibrated = 206,
    EVRInitError_VRInitError_Driver_CalibrationInvalid = 207,
    EVRInitError_VRInitError_Driver_HmdDisplayNotFound = 208,
    EVRInitError_VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209,
    EVRInitError_VRInitError_Driver_HmdDriverIdOutOfBounds = 211,
    EVRInitError_VRInitError_Driver_HmdDisplayMirrored = 212,
    EVRInitError_VRInitError_IPC_ServerInitFailed = 300,
    EVRInitError_VRInitError_IPC_ConnectFailed = 301,
    EVRInitError_VRInitError_IPC_SharedStateInitFailed = 302,
    EVRInitError_VRInitError_IPC_CompositorInitFailed = 303,
    EVRInitError_VRInitError_IPC_MutexInitFailed = 304,
    EVRInitError_VRInitError_IPC_Failed = 305,
    EVRInitError_VRInitError_IPC_CompositorConnectFailed = 306,
    EVRInitError_VRInitError_IPC_CompositorInvalidConnectResponse = 307,
    EVRInitError_VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308,
    EVRInitError_VRInitError_Compositor_Failed = 400,
    EVRInitError_VRInitError_Compositor_D3D11HardwareRequired = 401,
    EVRInitError_VRInitError_Compositor_FirmwareRequiresUpdate = 402,
    EVRInitError_VRInitError_Compositor_OverlayInitFailed = 403,
    EVRInitError_VRInitError_Compositor_ScreenshotsInitFailed = 404,
    EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataError = 1112,
    EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113,
    EVRInitError_VRInitError_Steam_SteamInstallationNotFound = 2000
  );

  TEVRScreenshotType =
  (
    EVRScreenshotType_VRScreenshotType_None = 0,
    EVRScreenshotType_VRScreenshotType_Mono = 1,
    EVRScreenshotType_VRScreenshotType_Stereo = 2,
    EVRScreenshotType_VRScreenshotType_Cubemap = 3,
    EVRScreenshotType_VRScreenshotType_MonoPanorama = 4,
    EVRScreenshotType_VRScreenshotType_StereoPanorama = 5
  );

  TEVRScreenshotPropertyFilenames =
  (
    EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_Preview = 0,
    EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_VR = 1
  );

  TEVRTrackedCameraError =
  (
    EVRTrackedCameraError_VRTrackedCameraError_None = 0,
    EVRTrackedCameraError_VRTrackedCameraError_OperationFailed = 100,
    EVRTrackedCameraError_VRTrackedCameraError_InvalidHandle = 101,
    EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameHeaderVersion = 102,
    EVRTrackedCameraError_VRTrackedCameraError_OutOfHandles = 103,
    EVRTrackedCameraError_VRTrackedCameraError_IPCFailure = 104,
    EVRTrackedCameraError_VRTrackedCameraError_NotSupportedForThisDevice = 105,
    EVRTrackedCameraError_VRTrackedCameraError_SharedMemoryFailure = 106,
    EVRTrackedCameraError_VRTrackedCameraError_FrameBufferingFailure = 107,
    EVRTrackedCameraError_VRTrackedCameraError_StreamSetupFailure = 108,
    EVRTrackedCameraError_VRTrackedCameraError_InvalidGLTextureId = 109,
    EVRTrackedCameraError_VRTrackedCameraError_InvalidSharedTextureHandle = 110,
    EVRTrackedCameraError_VRTrackedCameraError_FailedToGetGLTextureId = 111,
    EVRTrackedCameraError_VRTrackedCameraError_SharedTextureFailure = 112,
    EVRTrackedCameraError_VRTrackedCameraError_NoFrameAvailable = 113,
    EVRTrackedCameraError_VRTrackedCameraError_InvalidArgument = 114,
    EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameBufferSize = 115
  );

  TEVRTrackedCameraFrameType =
  (
    EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Distorted = 0,
    EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Undistorted = 1,
    EVRTrackedCameraFrameType_VRTrackedCameraFrameType_MaximumUndistorted = 2,
    EVRTrackedCameraFrameType_MAX_CAMERA_FRAME_TYPES = 3
  );

  TEVRApplicationError =
  (
    EVRApplicationError_VRApplicationError_None = 0,
    EVRApplicationError_VRApplicationError_AppKeyAlreadyExists = 100,
    EVRApplicationError_VRApplicationError_NoManifest = 101,
    EVRApplicationError_VRApplicationError_NoApplication = 102,
    EVRApplicationError_VRApplicationError_InvalidIndex = 103,
    EVRApplicationError_VRApplicationError_UnknownApplication = 104,
    EVRApplicationError_VRApplicationError_IPCFailed = 105,
    EVRApplicationError_VRApplicationError_ApplicationAlreadyRunning = 106,
    EVRApplicationError_VRApplicationError_InvalidManifest = 107,
    EVRApplicationError_VRApplicationError_InvalidApplication = 108,
    EVRApplicationError_VRApplicationError_LaunchFailed = 109,
    EVRApplicationError_VRApplicationError_ApplicationAlreadyStarting = 110,
    EVRApplicationError_VRApplicationError_LaunchInProgress = 111,
    EVRApplicationError_VRApplicationError_OldApplicationQuitting = 112,
    EVRApplicationError_VRApplicationError_TransitionAborted = 113,
    EVRApplicationError_VRApplicationError_IsTemplate = 114,
    EVRApplicationError_VRApplicationError_BufferTooSmall = 200,
    EVRApplicationError_VRApplicationError_PropertyNotSet = 201,
    EVRApplicationError_VRApplicationError_UnknownProperty = 202,
    EVRApplicationError_VRApplicationError_InvalidParameter = 203
  );

  TEVRApplicationProperty =
  (
    EVRApplicationProperty_VRApplicationProperty_Name_String = 0,
    EVRApplicationProperty_VRApplicationProperty_LaunchType_String = 11,
    EVRApplicationProperty_VRApplicationProperty_WorkingDirectory_String = 12,
    EVRApplicationProperty_VRApplicationProperty_BinaryPath_String = 13,
    EVRApplicationProperty_VRApplicationProperty_Arguments_String = 14,
    EVRApplicationProperty_VRApplicationProperty_URL_String = 15,
    EVRApplicationProperty_VRApplicationProperty_Description_String = 50,
    EVRApplicationProperty_VRApplicationProperty_NewsURL_String = 51,
    EVRApplicationProperty_VRApplicationProperty_ImagePath_String = 52,
    EVRApplicationProperty_VRApplicationProperty_Source_String = 53,
    EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool = 60,
    EVRApplicationProperty_VRApplicationProperty_IsTemplate_Bool = 61,
    EVRApplicationProperty_VRApplicationProperty_IsInstanced_Bool = 62,
    EVRApplicationProperty_VRApplicationProperty_LastLaunchTime_Uint64 = 70
  );

  TEVRApplicationTransitionState =
  (
    EVRApplicationTransitionState_VRApplicationTransition_None = 0,
    EVRApplicationTransitionState_VRApplicationTransition_OldAppQuitSent = 10,
    EVRApplicationTransitionState_VRApplicationTransition_WaitingForExternalLaunch = 11,
    EVRApplicationTransitionState_VRApplicationTransition_NewAppLaunched = 20
  );

  TChaperoneCalibrationState =
  (
    ChaperoneCalibrationState_OK = 1,
    ChaperoneCalibrationState_Warning = 100,
    ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101,
    ChaperoneCalibrationState_Warning_BaseStationRemoved = 102,
    ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103,
    ChaperoneCalibrationState_Error = 200,
    ChaperoneCalibrationState_Error_BaseStationUninitalized = 201,
    ChaperoneCalibrationState_Error_BaseStationConflict = 202,
    ChaperoneCalibrationState_Error_PlayAreaInvalid = 203,
    ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204
  );

  TEChaperoneConfigFile =
  (
	  EChaperoneConfigFile_Live = 1,
	  EChaperoneConfigFile_Temp = 2
  );

  TEChaperoneImportFlags =
  (
	  EChaperoneImportFlags_EChaperoneImport_BoundsOnly = 1
  );

  TEVRCompositorError =
  (
    EVRCompositorError_VRCompositorError_None = 0,
    EVRCompositorError_VRCompositorError_RequestFailed = 1,
    EVRCompositorError_VRCompositorError_IncompatibleVersion = 100,
    EVRCompositorError_VRCompositorError_DoNotHaveFocus = 101,
    EVRCompositorError_VRCompositorError_InvalidTexture = 102,
    EVRCompositorError_VRCompositorError_IsNotSceneApplication = 103,
    EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice = 104,
    EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat = 105,
    EVRCompositorError_VRCompositorError_SharedTexturesNotSupported = 106,
    EVRCompositorError_VRCompositorError_IndexOutOfRange = 107
  );

  TVROverlayInputMethod =
  (
    VROverlayInputMethod_None = 0,
    VROverlayInputMethod_Mouse = 1
  );

  TVROverlayTransformType =
  (
    VROverlayTransformType_VROverlayTransform_Absolute = 0,
    VROverlayTransformType_VROverlayTransform_TrackedDeviceRelative = 1,
    VROverlayTransformType_VROverlayTransform_SystemOverlay = 2,
    VROverlayTransformType_VROverlayTransform_TrackedComponent = 3
  );

  TVROverlayFlags =
  (
    VROverlayFlags_None = 0,
    VROverlayFlags_Curved = 1,
    VROverlayFlags_RGSS4X = 2,
    VROverlayFlags_NoDashboardTab = 3,
    VROverlayFlags_AcceptsGamepadEvents = 4,
    VROverlayFlags_ShowGamepadFocus = 5,
    VROverlayFlags_SendVRScrollEvents = 6,
    VROverlayFlags_SendVRTouchpadEvents = 7,
    VROverlayFlags_ShowTouchPadScrollWheel = 8,
    VROverlayFlags_TransferOwnershipToInternalProcess = 9,
    VROverlayFlags_SideBySide_Parallel = 10,
    VROverlayFlags_SideBySide_Crossed = 11,
    VROverlayFlags_Panorama = 12,
    VROverlayFlags_StereoPanorama = 13,
    VROverlayFlags_SortWithNonSceneOverlays = 14
  );

  TEGamepadTextInputMode =
  (
    EGamepadTextInputMode_k_EGamepadTextInputModeNormal = 0,
    EGamepadTextInputMode_k_EGamepadTextInputModePassword = 1,
    EGamepadTextInputMode_k_EGamepadTextInputModeSubmit = 2
  );

  TEGamepadTextInputLineMode =
  (
    EGamepadTextInputLineMode_k_EGamepadTextInputLineModeSingleLine = 0,
    EGamepadTextInputLineMode_k_EGamepadTextInputLineModeMultipleLines = 1
  );

  TEOverlayDirection =
  (
    EOverlayDirection_OverlayDirection_Up = 0,
    EOverlayDirection_OverlayDirection_Down = 1,
    EOverlayDirection_OverlayDirection_Left = 2,
    EOverlayDirection_OverlayDirection_Right = 3,
    EOverlayDirection_OverlayDirection_Count = 4
  );

  TEVRRenderModelError =
  (
    EVRRenderModelError_VRRenderModelError_None = 0,
    EVRRenderModelError_VRRenderModelError_Loading = 100,
    EVRRenderModelError_VRRenderModelError_NotSupported = 200,
    EVRRenderModelError_VRRenderModelError_InvalidArg = 300,
    EVRRenderModelError_VRRenderModelError_InvalidModel = 301,
    EVRRenderModelError_VRRenderModelError_NoShapes = 302,
    EVRRenderModelError_VRRenderModelError_MultipleShapes = 303,
    EVRRenderModelError_VRRenderModelError_TooManyVertices = 304,
    EVRRenderModelError_VRRenderModelError_MultipleTextures = 305,
    EVRRenderModelError_VRRenderModelError_BufferTooSmall = 306,
    EVRRenderModelError_VRRenderModelError_NotEnoughNormals = 307,
    EVRRenderModelError_VRRenderModelError_NotEnoughTexCoords = 308,
    EVRRenderModelError_VRRenderModelError_InvalidTexture = 400
  );

  TEVRComponentProperty =
  (
    EVRComponentProperty_VRComponentProperty_IsStatic = 1,
    EVRComponentProperty_VRComponentProperty_IsVisible = 2,
    EVRComponentProperty_VRComponentProperty_IsTouched = 4,
    EVRComponentProperty_VRComponentProperty_IsPressed = 8,
    EVRComponentProperty_VRComponentProperty_IsScrolled = 16
  );

  TEVRNotificationType =
  (
    EVRNotificationType_Transient = 0,
    EVRNotificationType_Persistent = 1,
    EVRNotificationType_Transient_SystemWithUserValue = 2
  );

  TEVRNotificationStyle =
  (
    EVRNotificationStyle_None = 0,
    EVRNotificationStyle_Application = 100,
    EVRNotificationStyle_Contact_Disabled = 200,
    EVRNotificationStyle_Contact_Enabled = 201,
    EVRNotificationStyle_Contact_Active = 202
  );

  TEVRSettingsError =
  (
    EVRSettingsError_VRSettingsError_None = 0,
    EVRSettingsError_VRSettingsError_IPCFailed = 1,
    EVRSettingsError_VRSettingsError_WriteFailed = 2,
    EVRSettingsError_VRSettingsError_ReadFailed = 3,
    EVRSettingsError_VRSettingsError_JsonParseFailed = 4,
    EVRSettingsError_VRSettingsError_UnsetSettingHasNoDefault = 5
  );

  TEVRScreenshotError =
  (
    EVRScreenshotError_VRScreenshotError_None = 0,
    EVRScreenshotError_VRScreenshotError_RequestFailed = 1,
    EVRScreenshotError_VRScreenshotError_IncompatibleVersion = 100,
    EVRScreenshotError_VRScreenshotError_NotFound = 101,
    EVRScreenshotError_VRScreenshotError_BufferTooSmall = 102,
    EVRScreenshotError_VRScreenshotError_ScreenshotAlreadyInProgress = 108
  );

  // OpenVR typedefs

  PTrackedDeviceIndex_t = ^TTrackedDeviceIndex_t;
  TTrackedDeviceIndex_t = UInt32;
  TVRNotificationId = UInt32;
  TVROverlayHandle_t = UInt64;
  PglSharedTextureHandle_t = ^TglSharedTextureHandle_t;
  TglSharedTextureHandle_t = pointer;
  TglInt_t = Int32;
  PglUInt_t = ^TglUInt_t;
  TglUInt_t = UInt32;
  TSharedTextureHandle_t = UInt64;
  TTrackedCameraHandle_t = UInt64;
  TScreenshotHandle_t = UInt32;
  TVRComponentProperties = UInt32;
  TTextureID_t = Int32;
  THmdError = TEVRInitError;
  THmd_Eye = TEVREye;
  TGraphicsAPIConvention = TEGraphicsAPIConvention;
  TColorSpace = TEColorSpace;
  THmdTrackingResult = TETrackingResult;
  TTrackedDeviceClass = TETrackedDeviceClass;
  TTrackingUniverseOrigin = TETrackingUniverseOrigin;
  TTrackedDeviceProperty = TETrackedDeviceProperty;
  TTrackedPropertyError = TETrackedPropertyError;
  TVRSubmitFlags_t = TEVRSubmitFlags;
  TVRState_t = TEVRState;
  TCollisionBoundsStyle_t = TECollisionBoundsStyle;
  TVROverlayError = TEVROverlayError;
  TVRFirmwareError = TEVRFirmwareError;
  TVRCompositorError = TEVRCompositorError;
  TVRScreenshotsError = TEVRScreenshotError;









// OpenVR Structs

  PHmdMatrix34_t = ^THmdMatrix34_t;
  THmdMatrix34_t = record
	  m: array[0..2] of array[0..3] of single; //float[3][4]
  end;

  THmdMatrix44_t = record
	  m: array[0..3] of array[0..3] of single; //float[4][4]
  end;

  THmdVector3_t = record
	  v: array[0..2] of single; //float[3]
  end;

  THmdVector4_t = record
    v: array[0..3] of single; //float[4]
  end;

  THmdVector3d_t = record
	  v: array[0..2] of double; //double[3]
  end;

  PHmdVector2_t = ^THmdVector2_t;
  THmdVector2_t = record
	  v: array[0..1] of single; //float[2]
  end;

  THmdQuaternion_t = record
    w,x,y,z: double;
  end;

  THmdColor_t = record
    r,g,b,a: single;
  end;

  THmdQuad_t = record
    vCorners: array[0..3] of THmdVector3_t; //struct vr::HmdVector3_t[4]
  end;

  THmdRect2_t = record
    vTopLeft, vBottomRight: THmdVector2_t;
  end;

  TDistortionCoordinates_t = record
	  rfRed: array[0..1] of single; //float[2]
	  rfGreen: array[0..1] of single; //float[2]
	  rfBlue: array[0..1] of single; //float[2]
  end;

  PTexture_t = ^TTexture_t;
  TTexture_t = record
	  handle: pointer; // void *
	  eType: TEGraphicsAPIConvention;
    eColorSpace: TEColorSpace;
  end;

  PTrackedDevicePose_t = ^TTrackedDevicePose_t;
  TTrackedDevicePose_t = record
    mDeviceToAbsoluteTracking: THmdMatrix34_t;
    vVelocity: THmdVector3_t;
    vAngularVelocity: THmdVector3_t;
    eTrackingResult: TETrackingResult;
    bPoseIsValid: boolean;
    bDeviceIsConnected: boolean;
  end;

  PVRTextureBounds_t = ^TVRTextureBounds_t;
  TVRTextureBounds_t = record
    uMin, vMin, uMax, vMax: single;
  end;

//  TVulkanData_t = record
//	m_nImage: UInt64;
//	m_pDevice: TVkDevice_T * ; // struct VkDevice_T *
//	m_pPhysicalDevice: struct VkPhysicalDevice_T * ; // struct VkPhysicalDevice_T *
//	m_pInstance: struct VkInstance_T * ; // struct VkInstance_T *
//	m_pQueue: struct VkQueue_T * ; // struct VkQueue_T *
//	m_nQueueFamilyIndex: uint32;
//	m_nWidth: uint32;
//	m_nHeight: uint32;
//	m_nFormat: uint32;
//	m_nSampleCount: uint32;
//  end;

  TVREvent_Controller_t = record
	  button: uint32;
  end;

  TVREvent_Mouse_t = record
    x,y: single;
    button: UInt32;
  end;

  TVREvent_Scroll_t = record
	  xdelta, ydelta: single;
	  repeatCount: UInt32;
  end;

  TVREvent_TouchPadMove_t = record
	  bFingerDown: boolean;
  	flSecondsFingerDown,
  	fValueXFirst,
  	fValueYFirst,
  	fValueXRaw,
  	fValueYRaw: single;
  end;

  TVREvent_Notification_t = record
	  ulUserValue: UInt64;
	  notificationId: UInt32;
  end;

  TVREvent_Process_t = record
    pid: UInt32;
    oldPid: UInt32;
    bForced: boolean;
  end;

  TVREvent_Overlay_t = record
	  overlayHandle: UInt64;
  end;

  TVREvent_Status_t = record
	  statusState: UInt32;
  end;

  TVREvent_Keyboard_t = record
    cNewInput: array[1..8] of AnsiChar; //char[8]
	  uUserValue: UInt64;
  end;

  TVREvent_Ipd_t = record
	  ipdMeters: single;
  end;

  TVREvent_Chaperone_t = record
	 m_nPreviousUniverse: UInt64;
	  m_nCurrentUniverse: UInt64;
  end;

  TVREvent_Reserved_t = record
	  reserved0: UInt64;
	  reserved1: UInt64;
  end;

  TVREvent_PerformanceTest_t = record
	  m_nFidelityLevel: UInt32;
  end;

  TVREvent_SeatedZeroPoseReset_t = record
	  bResetBySystemMenu: boolean;
  end;

  TVREvent_Screenshot_t = record
	  handle: UInt32;
	  typ: UInt32;
  end;

  TVREvent_ScreenshotProgress_t = record
	  progress: single;
  end;

  TVREvent_ApplicationLaunch_t = record
	  pid: UInt32;
	  unArgsHandle: UInt32;
  end;

  TVREvent_EditingCameraSurface_t = record
	  overlayHandle: UInt64;
	  nVisualMode: UInt32;
  end;

  THiddenAreaMesh_t = record
	  pVertexData: PHmdVector2_t; // const struct vr::HmdVector2_t *
	  unTriangleCount: UInt32;
  end;

  TVRControllerAxis_t = record
    x: single;
	  y: single;
  end;

  PVRControllerState_t = ^TVRControllerState_t;
  TVRControllerState_t = record
	  unPacketNum: UInt32;
	  ulButtonPressed: UInt64;
	  ulButtonTouched: UInt64;
	  rAxis: array[0..4] of TVRControllerAxis_t; //struct vr::VRControllerAxis_t[5]
  end;

  TCompositor_OverlaySettings = record
	  size: UInt32;
	  curved: boolean;
	  antialias: boolean;
	  scale: single;
	  distance: single;
	  alpha: single;
	  uOffset: single;
	  vOffset: single;
	  uScale: single;
	  vScale: single;
	  gridDivs: single;
	  gridWidth: single;
	  gridScale: single;
	  transform: THmdMatrix44_t;
  end;

  TCameraVideoStreamFrameHeader_t = record
	  eFrameType: TEVRTrackedCameraFrameType;
	  nWidth: UInt32;
	  nHeight: UInt32;
	  nBytesPerPixel: UInt32;
	  nFrameSequence: UInt32;
	  standingTrackedDevicePose: TTrackedDevicePose_t;
  end;

  TAppOverrideKeys_t = record
	  pchKey: PAnsiChar; // const char *
	  pchValue: PAnsiChar; // const char *
  end;

  TCompositor_FrameTiming = record
	  m_nSize: UInt32;
	  m_nFrameIndex: UInt32;
	  m_nNumFramePresents: UInt32;
	  m_nNumDroppedFrames: UInt32;
	  m_nReprojectionFlags: UInt32;
	  m_flSystemTimeInSeconds: double;
	  m_flPreSubmitGpuMs: single;
	  m_flPostSubmitGpuMs: single;
	  m_flTotalRenderGpuMs: single;
	  m_flCompositorRenderGpuMs: single;
	  m_flCompositorRenderCpuMs: single;
	  m_flCompositorIdleCpuMs: single;
	  m_flClientFrameIntervalMs: single;
	  m_flPresentCallCpuMs: single;
	  m_flWaitForPresentCpuMs: single;
	  m_flSubmitFrameMs: single;
	  m_flWaitGetPosesCalledMs: single;
	  m_flNewPosesReadyMs: single;
	  m_flNewFrameReadyMs: single;
	  m_flCompositorUpdateStartMs: single;
	  m_flCompositorUpdateEndMs: single;
	  m_flCompositorRenderStartMs: single;
	  m_HmdPose: TTrackedDevicePose_t;
  end;

  TCompositor_CumulativeStats = record
	  m_nPid: UInt32;
	  m_nNumFramePresents: UInt32;
	  m_nNumDroppedFrames: UInt32;
	  m_nNumReprojectedFrames: UInt32;
	  m_nNumFramePresentsOnStartup: UInt32;
	  m_nNumDroppedFramesOnStartup: UInt32;
	  m_nNumReprojectedFramesOnStartup: UInt32;
	  m_nNumLoading: UInt32;
	  m_nNumFramePresentsLoading: UInt32;
	  m_nNumDroppedFramesLoading: UInt32;
	  m_nNumReprojectedFramesLoading: UInt32;
	  m_nNumTimedOut: UInt32;
	  m_nNumFramePresentsTimedOut: UInt32;
	  m_nNumDroppedFramesTimedOut: UInt32;
	  m_nNumReprojectedFramesTimedOut: UInt32;
  end;

  TVROverlayIntersectionParams_t = record
	  vSource: THmdVector3_t;
	  vDirection: THmdVector3_t;
	  eOrigin: TETrackingUniverseOrigin;
  end;

  TVROverlayIntersectionResults_t = record
	  vPoint: THmdVector3_t;
	  vNormal: THmdVector3_t ;
	  vUVs: THmdVector2_t;
	  fDistance: single;
  end;

  TRenderModel_ComponentState_t = record
	  mTrackingToComponentRenderModel: THmdMatrix34_t;
	  mTrackingToComponentLocal: THmdMatrix34_t;
	  uProperties: TVRComponentProperties;
  end;

  PRenderModel_Vertex_t = ^TRenderModel_Vertex_t;
  TRenderModel_Vertex_t = record
    vPosition: THmdVector3_t;
	  vNormal: THmdVector3_t;
	  rfTextureCoord: array[0..1] of single; //float[2]
  end;

  TRenderModel_TextureMap_t = record
	  unWidth: UInt16;
	  unHeight: UInt16;
	  rubTextureMapData: PUInt8; // const uint8_t *
  end;

  TRenderModel_t = record
	  rVertexData: PRenderModel_Vertex_t; // const struct vr::RenderModel_Vertex_t *
	  unVertexCount: UInt32;
	  rIndexData: PUInt16; // const uint16_t *
	  unTriangleCount: UInt32;
	  diffuseTextureId: TTextureID_t;
  end;

  TRenderModel_ControllerMode_State_t = record
	  bScrollWheelVisible: boolean;
  end;

  TNotificationBitmap_t = record
	  m_pImageData: pointer; // void *
	  m_nWidth: Int32;
	  m_nHeight: Int32;
	  m_nBytesPerPixel: Int32;
  end;


  TVREvent_Data_t = record
    reserved: TVREvent_Reserved_t;
    controller: TVREvent_Controller_t;
    mouse: TVREvent_Mouse_t;
    scroll: TVREvent_Scroll_t;
    process: TVREvent_Process_t;
    notification: TVREvent_Notification_t;
    overlay: TVREvent_Overlay_t;
    status: TVREvent_Status_t;
    keyboard: TVREvent_Keyboard_t;
    ipd: TVREvent_Ipd_t;
    chaperone: TVREvent_Chaperone_t;
    performanceTest: TVREvent_PerformanceTest_t;
    touchPadMove: TVREvent_TouchPadMove_t;
    seatedZeroPoseReset: TVREvent_SeatedZeroPoseReset_t;
  end;
//
//// An event posted by the server to all running applications
  PVREvent_t = ^TVREvent_t;
  TVREvent_t = record
    eventType: UInt32; // EVREventType enum
    trackedDeviceIndex: TTrackedDeviceIndex_t;
    eventAgeSeconds: single;
    // event data must be the end of the struct as its size is variable
    data: TVREvent_Data_t;
  end;



// OpenVR Function Pointer Tables
// (unvollständig! siehe openvr_capi.h für weitere FnTables!)

// System:

  TGetRecommendedRenderTargetSize = procedure(pnWidth, pnHeight: PUInt32); stdcall;
  TGetProjectionMatrix = function(eEye: TEVREye; fNearZ, fFarZ: single; eProjType: TEGraphicsAPIConvention): THmdMatrix44_t; stdcall;
  TGetProjectionRaw = procedure(eEye: TEVREye; pfLeft, pfRight, pfTop, pfBottom: PSingle); stdcall;
  TComputeDistortion = function(eEye: TEVREye; fU, fV: single): TDistortionCoordinates_t; stdcall;
  TGetEyeToHeadTransform = function(eEye: TEVREye): THmdMatrix34_t; stdcall;
  TGetTimeSinceLastVsync = function(pfSecondsSinceLastVsync: PSingle; pulFrameCounter: PUInt64): boolean; stdcall;
  TGetD3D9AdapterIndex = function: Int32; stdcall;
  TGetDXGIOutputInfo = procedure(pnAdapterIndex: PInt32); stdcall;
  TIsDisplayOnDesktop = function: boolean; stdcall;
  TSetDisplayVisibility = function(bIsVisibleOnDesktop: boolean): boolean; stdcall;
  TGetDeviceToAbsoluteTrackingPose = procedure(eOrigin: TETrackingUniverseOrigin; fPredictedSecondsToPhotonsFromNow: single; pTrackedDevicePoseArray: PTrackedDevicePose_t; unTrackedDevicePoseArrayCount: UInt32); stdcall;
  TResetSeatedZeroPose = procedure; stdcall;
  TGetSeatedZeroPoseToStandingAbsoluteTrackingPose = function: THmdMatrix34_t; stdcall;
  TGetRawZeroPoseToStandingAbsoluteTrackingPose = function: THmdMatrix34_t; stdcall;
  TGetSortedTrackedDeviceIndicesOfClass = function(eTrackedDeviceClass: TETrackedDeviceClass; punTrackedDeviceIndexArray: PTrackedDeviceIndex_t; unTrackedDeviceIndexArrayCount: UInt32; unRelativeToTrackedDeviceIndex: TTrackedDeviceIndex_t): UInt32; stdcall;
  TGetTrackedDeviceActivityLevel = function(unDeviceId: TTrackedDeviceIndex_t): TEDeviceActivityLevel; stdcall;
  TApplyTransform = procedure(pOutputPose: PTrackedDevicePose_t; pTrackedDevicePose: PTrackedDevicePose_t; pTransform: PHmdMatrix34_t); stdcall;
  TGetTrackedDeviceIndexForControllerRole = function(unDeviceType: TETrackedControllerRole): TTrackedDeviceIndex_t; stdcall;
  TGetControllerRoleForTrackedDeviceIndex = function(unDeviceIndex: TTrackedDeviceIndex_t): TETrackedControllerRole; stdcall;
  TGetTrackedDeviceClass = function(unDeviceIndex: TTrackedDeviceIndex_t): TETrackedDeviceClass; stdcall;
  TIsTrackedDeviceConnected = function(unDeviceIndex: TTrackedDeviceIndex_t): boolean; stdcall;
  TGetBoolTrackedDeviceProperty = function(unDeviceIndex: TTrackedDeviceIndex_t; prop: TETrackedDeviceProperty; pError: PETrackedPropertyError): boolean; stdcall;
  TGetFloatTrackedDeviceProperty = function(unDeviceIndex: TTrackedDeviceIndex_t; prop: TETrackedDeviceProperty; pError: PETrackedPropertyError): single; stdcall;
  TGetInt32TrackedDeviceProperty = function(unDeviceIndex: TTrackedDeviceIndex_t; prop: TETrackedDeviceProperty; pError: PETrackedPropertyError): Int32; stdcall;
  TGetUint64TrackedDeviceProperty = function(unDeviceIndex: TTrackedDeviceIndex_t; prop: TETrackedDeviceProperty; pError: PETrackedPropertyError): UInt64; stdcall;
  TGetMatrix34TrackedDeviceProperty = function(unDeviceIndex: TTrackedDeviceIndex_t; prop: TETrackedDeviceProperty; pError: PETrackedPropertyError): THmdMatrix34_t; stdcall;
  TGetStringTrackedDeviceProperty = function(unDeviceIndex: TTrackedDeviceIndex_t; prop: TETrackedDeviceProperty; pchValue: PAnsiChar; unBufferSize: UInt32; pError: PETrackedPropertyError): UInt32; stdcall;
  TGetPropErrorNameFromEnum = function(error: TETrackedPropertyError): PAnsiChar; stdcall;
  TPollNextEvent = function(pEvent: PVREvent_t; uncbVREvent: UInt32): boolean; stdcall;
  TPollNextEventWithPose = function(eOrigin: TETrackingUniverseOrigin; pEvent: PVREvent_t; uncbVREvent: UInt32; pTrackedDevicePose: PTrackedDevicePose_t): boolean; stdcall;
  TGetEventTypeNameFromEnum = function(eType: TEVREventType): PAnsiChar; stdcall;
  TGetHiddenAreaMesh = function(eEye: TEVREye): THiddenAreaMesh_t; stdcall;
  TGetControllerState = function(unControllerDeviceIndex: TTrackedDeviceIndex_t; pControllerState: PVRControllerState_t): boolean; stdcall;
  TGetControllerStateWithPose = function(eOrigin: TETrackingUniverseOrigin; unControllerDeviceIndex: TTrackedDeviceIndex_t; pControllerState: PVRControllerState_t; pTrackedDevicePose: PTrackedDevicePose_t): boolean; stdcall;
  TTriggerHapticPulse = procedure(unControllerDeviceIndex: TTrackedDeviceIndex_t; unAxisId: UInt32; usDurationMicroSec: UInt16); stdcall;
  TGetButtonIdNameFromEnum = function(eButtonId: TEVRButtonId): PAnsiChar; stdcall;
  TGetControllerAxisTypeNameFromEnum = function(eAxisType: TEVRControllerAxisType): PAnsiChar; stdcall;
  TCaptureInputFocus = function: boolean; stdcall;
  TReleaseInputFocus = procedure; stdcall;
  TIsInputFocusCapturedByAnotherProcess = function: boolean stdcall;
  TDriverDebugRequest = function(unDeviceIndex: TTrackedDeviceIndex_t; pchRequest: PAnsiChar; pchResponseBuffer: PAnsiChar; unResponseBufferSize: UInt32): UInt32; stdcall;
  TPerformFirmwareUpdate = function(unDeviceIndex: TTrackedDeviceIndex_t): TEVRFirmwareError; stdcall;
  TAcknowledgeQuit_Exiting = procedure; stdcall;
  TAcknowledgeQuit_UserPrompt = procedure; stdcall;

  PVR_IVRSystem_FnTable = ^TVR_IVRSystem_FnTable;
  TVR_IVRSystem_FnTable = record
    GetRecommendedRenderTargetSize: TGetRecommendedRenderTargetSize;
    GetProjectionMatrix: TGetProjectionMatrix;
    GetProjectionRaw: TGetProjectionRaw;
    ComputeDistortion: TComputeDistortion;
    GetEyeToHeadTransform: TGetEyeToHeadTransform;
    GetTimeSinceLastVsync: TGetTimeSinceLastVsync;
    GetD3D9AdapterIndex: TGetD3D9AdapterIndex;
    GetDXGIOutputInfo: TGetDXGIOutputInfo;
    IsDisplayOnDesktop: TIsDisplayOnDesktop;
    SetDisplayVisibility: TSetDisplayVisibility;
    GetDeviceToAbsoluteTrackingPose: TGetDeviceToAbsoluteTrackingPose;
    ResetSeatedZeroPose: TResetSeatedZeroPose;
    GetSeatedZeroPoseToStandingAbsoluteTrackingPose: TGetSeatedZeroPoseToStandingAbsoluteTrackingPose;
    GetRawZeroPoseToStandingAbsoluteTrackingPose: TGetRawZeroPoseToStandingAbsoluteTrackingPose;
    GetSortedTrackedDeviceIndicesOfClass: TGetSortedTrackedDeviceIndicesOfClass;
    GetTrackedDeviceActivityLevel: TGetTrackedDeviceActivityLevel;
    ApplyTransform: TApplyTransform;
    GetTrackedDeviceIndexForControllerRole: TGetTrackedDeviceIndexForControllerRole;
    GetControllerRoleForTrackedDeviceIndex: TGetControllerRoleForTrackedDeviceIndex;
    GetTrackedDeviceClass: TGetTrackedDeviceClass;
    IsTrackedDeviceConnected: TIsTrackedDeviceConnected;
    GetBoolTrackedDeviceProperty: TGetBoolTrackedDeviceProperty;
    GetFloatTrackedDeviceProperty: TGetFloatTrackedDeviceProperty;
    GetInt32TrackedDeviceProperty: TGetInt32TrackedDeviceProperty;
    GetUint64TrackedDeviceProperty: TGetUint64TrackedDeviceProperty;
    GetMatrix34TrackedDeviceProperty: TGetMatrix34TrackedDeviceProperty;
    GetStringTrackedDeviceProperty: TGetStringTrackedDeviceProperty;
    GetPropErrorNameFromEnum: TGetPropErrorNameFromEnum;
    PollNextEvent: TPollNextEvent;
    PollNextEventWithPose: TPollNextEventWithPose;
    GetEventTypeNameFromEnum: TGetEventTypeNameFromEnum;
    GetHiddenAreaMesh: TGetHiddenAreaMesh;
    GetControllerState: TGetControllerState;
    GetControllerStateWithPose: TGetControllerStateWithPose;
    TriggerHapticPulse: TTriggerHapticPulse;
    GetButtonIdNameFromEnum: TGetButtonIdNameFromEnum;
    GetControllerAxisTypeNameFromEnum: TGetControllerAxisTypeNameFromEnum;
    CaptureInputFocus: TCaptureInputFocus;
    ReleaseInputFocus: TReleaseInputFocus;
    IsInputFocusCapturedByAnotherProcess: TIsInputFocusCapturedByAnotherProcess;
    DriverDebugRequest: TDriverDebugRequest;
    PerformFirmwareUpdate: TPerformFirmwareUpdate;
    AcknowledgeQuit_Exiting: TAcknowledgeQuit_Exiting;
    AcknowledgeQuit_UserPrompt: TAcknowledgeQuit_UserPrompt;
  end;
//  TVR_IVRSystem_FnTable = array[0..128] of ansichar;


  TSetTrackingSpace = procedure(eOrigin: TETrackingUniverseOrigin); stdcall;
  TGetTrackingSpace = function: TETrackingUniverseOrigin; stdcall;
  TWaitGetPoses = function(pRenderPoseArray: PTrackedDevicePose_t; unRenderPoseArrayCount: UInt32; pGamePoseArray: PTrackedDevicePose_t; unGamePoseArrayCount: UInt32): TEVRCompositorError; stdcall;
  TGetLastPoses = function(pRenderPoseArray: PTrackedDevicePose_t; unRenderPoseArrayCount: UInt32; pGamePoseArray: PTrackedDevicePose_t; unGamePoseArrayCount: UInt32): TEVRCompositorError; stdcall;
  TGetLastPoseForTrackedDeviceIndex = function(unDeviceIndex: TTrackedDeviceIndex_t; pOutputPose: PTrackedDevicePose_t; pOutputGamePose: PTrackedDevicePose_t): TEVRCompositorError; stdcall;
  TSubmit = function(eEye: TEVREye; pTexture: PTexture_t; pBounds: PVRTextureBounds_t = nil; nSubmitFlags: TEVRSubmitFlags = EVRSubmitFlags_Submit_Default): TEVRCompositorError; stdcall;
  TClearLastSubmittedFrame = procedure; stdcall;
  TPostPresentHandoff = procedure; stdcall;
  TGetFrameTiming = function(pTiming: TCompositor_FrameTiming; unFramesAgo: UInt32): boolean; stdcall;
  TGetFrameTimeRemaining = function: single; stdcall;
  TGetCumulativeStats = procedure(pStats: TCompositor_CumulativeStats; nStatsSizeInBytes: UInt32); stdcall;
  TFadeToColor = procedure(fSeconds, fRed, fGreen, fBlue, fAlpha: single; bBackground: boolean); stdcall;
  TFadeGrid = procedure(fSeconds: boolean; bFadeIn: boolean); stdcall;
  TSetSkyboxOverride = function(pTextures: PTexture_t; unTextureCount: UInt32): TEVRCompositorError; stdcall;
  TClearSkyboxOverride = procedure; stdcall;
  TCompositorBringToFront = procedure; stdcall;
  TCompositorGoToBack = procedure; stdcall;
  TCompositorQuit = procedure; stdcall;
  TIsFullscreen = function: boolean; stdcall;
  TGetCurrentSceneFocusProcess = function: UInt32; stdcall;
  TGetLastFrameRenderer = function: UInt32; stdcall;
  TCanRenderScene = function: boolean; stdcall;
  TShowMirrorWindow = procedure; stdcall;
  THideMirrorWindow = procedure; stdcall;
  TIsMirrorWindowVisible = function: boolean; stdcall;
  TCompositorDumpImages = procedure; stdcall;
  TShouldAppRenderWithLowResources = function: boolean; stdcall;
  TForceInterleavedReprojectionOn = procedure(bOverride: boolean); stdcall;
  TForceReconnectProcess = procedure; stdcall;
  TSuspendRendering = procedure(bSuspend: boolean); stdcall;
  TGetMirrorTextureD3D11 = function(eEye: TEVREye; pD3D11DeviceOrResource: pointer; ppD3D11ShaderResourceView: pointer): TEVRCompositorError; stdcall;
  TGetMirrorTextureGL = function(eEye: TEVREye; pglTextureId: PglUInt_t; pglSharedTextureHandle: PglSharedTextureHandle_t): TEVRCompositorError; stdcall;
  TReleaseSharedGLTexture = function(glTextureId: TglUInt_t; glSharedTextureHandle: PglSharedTextureHandle_t): boolean; stdcall;
  TLockGLSharedTextureForAccess = procedure(glSharedTextureHandle: TglSharedTextureHandle_t);
  TUnlockGLSharedTextureForAccess = procedure(glSharedTextureHandle: TglSharedTextureHandle_t);

  PVR_IVRCompositor_FnTable = ^TVR_IVRCompositor_FnTable;
  TVR_IVRCompositor_FnTable = record
    SetTrackingSpace: TSetTrackingSpace;
    GetTrackingSpace: TGetTrackingSpace;
    WaitGetPoses: TWaitGetPoses;
    GetLastPoses: TGetLastPoses;
    GetLastPoseForTrackedDeviceIndex: TGetLastPoseForTrackedDeviceIndex;
    Submit: TSubmit;
    ClearLastSubmittedFrame: TClearLastSubmittedFrame;
    PostPresentHandoff: TPostPresentHandoff;
    GetFrameTiming: TGetFrameTiming;
    GetFrameTimeRemaining: TGetFrameTimeRemaining;
    GetCumulativeStats: TGetCumulativeStats;
    FadeToColor: TFadeToColor;
    FadeGrid: TFadeGrid;
    SetSkyboxOverride: TSetSkyboxOverride;
    ClearSkyboxOverride: TClearSkyboxOverride;
    CompositorBringToFront: TCompositorBringToFront;
    CompositorGoToBack: TCompositorGoToBack;
    CompositorQuit: TCompositorQuit;
    IsFullscreen: TIsFullscreen;
    GetCurrentSceneFocusProcess: TGetCurrentSceneFocusProcess;
    GetLastFrameRenderer: TGetLastFrameRenderer;
    CanRenderScene: TCanRenderScene;
    ShowMirrorWindow: TShowMirrorWindow;
    HideMirrorWindow: THideMirrorWindow;
    IsMirrorWindowVisible: TIsMirrorWindowVisible;
    CompositorDumpImages: TCompositorDumpImages;
    ShouldAppRenderWithLowResources: TShouldAppRenderWithLowResources;
    ForceInterleavedReprojectionOn: TForceInterleavedReprojectionOn;
    ForceReconnectProcess: TForceReconnectProcess;
    SuspendRendering: TSuspendRendering;
    GetMirrorTextureD3D11: TGetMirrorTextureD3D11;
    GetMirrorTextureGL: TGetMirrorTextureGL;
    ReleaseSharedGLTexture: TReleaseSharedGLTexture;
    LockGLSharedTextureForAccess: TLockGLSharedTextureForAccess;
    UnlockGLSharedTextureForAccess: TUnlockGLSharedTextureForAccess;
  end;


  PCOpenVRContext = ^TCOpenVRContext;
  TCOpenVRContext = record
	  m_pVRSystem: PVR_IVRSystem_FnTable; // class vr::IVRSystem *
	  m_pVRChaperone: PInteger; // class vr::IVRChaperone *
	  m_pVRChaperoneSetup: PInteger; // class vr::IVRChaperoneSetup *
	  m_pVRCompositor: PVR_IVRCompositor_FnTable; // class vr::IVRCompositor *
	  m_pVROverlay: PInteger; // class vr::IVROverlay *
	  m_pVRResources: PInteger; // class vr::IVRResources *
	  m_pVRRenderModels: PInteger; // class vr::IVRRenderModels *
	  m_pVRExtendedDisplay: PInteger; // class vr::IVRExtendedDisplay *
	  m_pVRSettings: PInteger; // class vr::IVRSettings *
	  m_pVRApplications: PInteger; // class vr::IVRApplications *
	  m_pVRTrackedCamera: PInteger; // class vr::IVRTrackedCamera *
	  m_pVRScreenshots: PInteger; // class vr::IVRScreenshots *
  end;

// Global entry points:

  function VR_InitInternal(peError: PEVRInitError; eType: TEVRApplicationType): UInt32; cdecl; external DLL_FILENAME;
  procedure VR_ShutdownInternal; cdecl; external DLL_FILENAME;
  function VR_GetVRInitErrorAsEnglishDescription(error: TEVRInitError): PAnsiChar; cdecl; external DLL_FILENAME;
  function VR_GetGenericInterface(pchInterfaceVersion: PAnsiChar; peError: PEVRInitError): pointer; cdecl; external DLL_FILENAME;


//  procedure VR_IVRSystem_GetRecommendedRenderTargetSize(pnWidth, pnHeight: PUInt32); cdecl; external DLL_FILENAME;

implementation

end.