Skip to content

Commit b874ad5

Browse files
committed
fix
1 parent d9b68b6 commit b874ad5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Delphi/Get data/Unit1.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ _Controller = record
102102
DllHandle: HMODULE;
103103
GetHMDData: function(out myHMD: THMD): DWORD; stdcall;
104104
GetControllersData: function(out myController, myController2: TController): DWORD; stdcall;
105-
SetControllerData: function (dwIndex: integer; MotorSpeed: dword): DWORD; stdcall;
105+
SetControllerData: function (dwIndex: integer; MotorSpeed: word): DWORD; stdcall;
106106
SetCentering: function (dwIndex: integer): DWORD; stdcall;
107107

108108
implementation
@@ -247,8 +247,8 @@ procedure TMain.Button1Click(Sender: TObject);
247247

248248
procedure TMain.Button2Click(Sender: TObject);
249249
begin
250-
SetControllerData(IDController, 12599);
251-
SetControllerData(IDController2, 42517);
250+
SetControllerData(IDController, 65535);
251+
SetControllerData(IDController2, 32761);
252252
end;
253253

254254
end.

0 commit comments

Comments
 (0)