Skip to content

Commit 0a5bb08

Browse files
committed
Fixes
1 parent c50709d commit 0a5bb08

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Delphi/SplitterAdvance/SplitterAdvance.dpr

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ type TOffsetPos = record
4545
end;
4646

4747
var
48-
HMDPosDll, HMDRotDll, CtrlsPosDll, CtrlsRotDll, CtrlsBtnsDll: HMODULE;
49-
Error: boolean;
50-
5148
DriverGetHMDPos: function(out myHMD: THMD): DWORD; stdcall;
5249
DriverGetHMDRot: function(out myHMD: THMD): DWORD; stdcall;
5350
DriverSetCenteringHMD: function (dwIndex: integer): DWORD; stdcall;
@@ -58,6 +55,10 @@ var
5855
DriverSetControllerData: function (dwIndex: integer; MotorSpeed: word): DWORD; stdcall;
5956
DriverSetCenteringCtrls: function (dwIndex: integer): DWORD; stdcall;
6057

58+
59+
HMDPosDll, HMDRotDll, CtrlsPosDll, CtrlsRotDll, CtrlsBtnsDll: HMODULE;
60+
Error: boolean;
61+
6162
HMDUseRot, CtrlsUseRot, CtrlsRotBtns, CtrlsUseBtns: boolean;
6263

6364
HMDPosOffset, Ctrl1PosOffset, Ctrl2PosOffset: TOffsetPos;
@@ -309,6 +310,7 @@ begin
309310
if CtrlsUseRot then begin
310311
CtrlsRotDll:=LoadLibrary(PChar(CtrlsRotDrvPath));
311312
@DriverGetControllersRot:=GetProcAddress(CtrlsRotDll, 'GetControllersData');
313+
@DriverSetControllerData:=GetProcAddress(CtrlsRotDll, 'SetControllerData');
312314
@DriverSetCenteringCtrls:=GetProcAddress(CtrlsRotDll, 'SetCentering');
313315
end;
314316

0 commit comments

Comments
 (0)