For some reason, Delphi 6 complained today about the input stuff. If it does that to you ("cannot pass a constant as a var param" or something) then you want to open up DirectInput.pas (line 881) and change it from SetDataFormat(var whatever...: TSomething)" to SetDataFormat(whatever: PSomething); (slightly vague, I know, but you can figure that one out
). Wherever the compiler complains about SetDataFormat calls, add a @ in front of the var (e.g. {Dxcheck}(FDirectInputDevice.SetDataFormat(@c_dfDI Keyboard))
.
Bookmarks