Quote Originally Posted by Alimonster
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)).
I think this is just a mistake in the JEDI headers. I changed it to SetDataFormat(const lpdf: TDIDataFormat) (I think), which is nicer that setting it to a pointer.