Results 1 to 10 of 10

Thread: XInput interface for Delphi

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Hello, at first I wanted to ask for help because I was having trouble getting the XInput library (unitXInput.pas) working with Delphi 2009, but when I looked in it the solution was really simple. So I'm sharing it if anyone would need it in the future.

    All you had to do is change uses:
    WinAPI.Windows -> Windows
    System.Types -> Types

    And add a new const:
    GUID_NULL: TGUID = '{00000000-0000-0000-0000-000000000000}';

    Also the example project "XInputTestbed" has too many errors so the best way is to create your own test application from scratch.

    It's nothing groundbraking but maybe someone will find it useful.

    And thanks for the library, it's working great!

  2. #2
    PGDCE Developer de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    287
    Awesome. This will be hugely helpful when I get around to implementing gamepad input Started it, but kinda stopped to do other things and left it in my pile of unfinished code.
    Existence is pain

  3. #3
    >XInput1_4.dll
    Oh, I didn't know 1.4 existed. Thank you for reminding me.
    My engine transparently supports 1.3 and 9.1.0
    I guess I'd have to buy a Xbox 360 controller headset to test it in full. Sigh.

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
  •