Results 1 to 3 of 3

Thread: My DirectInput Engine

  1. #1

    My DirectInput Engine

    I have uploaded the source for my AlphaInput(tm) Engine. This is a wrapper for DirectInput8, using the JEDI headers. You can download it here. I have only tested it in Delphi 7 Personal, so I would be interested to know whether it works with other versions. It uses the JEDI headers, but I have modified mine slightly, so if you have any problems, let me know.
    [size=10px][ Join us in #pgd on irc.freenode.net ] [ Sign the Petition for a Software Patent Free Europe ][/size]

  2. #2

    My DirectInput Engine

    A few compatibility tips:

    Remove 'variants' from the uses clause, which was introduced in Delphi 5+. You probably aren't using variants here and it only gets in Delphi 4's way. Also, right click each of your forms and deselect "text DFM". This stops an "invalid stream format" problem when you try to view the form with Delphi 4. There's a function GuidToString - this is declared in ComObj for most versions of Delphi, I believe. Delphi 4 barfed at this, so maybe adding that unit would sort out that problem (or just rip it from the VCL source ). If you make those changes then it would probably work under Delphi 4 (though I don't have DelphiX sitting around, so I can't test out that theory yet).

    It loaded fine under Delphi 5 and 6. I remember testing it a week or two ago when you posted it in Your Projects, so I know it works :mrgreen:

    Cool work, man.
    "All paid jobs absorb and degrade the mind."
    <br />-- Aristotle

  3. #3

    My DirectInput Engine

    Thanks for the tips, Alimonster.

    I don't know why variants was included, since I am definately not using them. I'm not really that bothered about whether the demo program works, just the 'AplhaInput.pas' thing. DelphiX is only required because I used the TDXTimer component; you could use a different timer component if you wanted.
    [size=10px][ Join us in #pgd on irc.freenode.net ] [ Sign the Petition for a Software Patent Free Europe ][/size]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •