comp.lang.ada
 help / color / mirror / Atom feed
From: jsquirek@gmail.com
Subject: Re: Problems Linking With a C++ Lib
Date: Mon, 9 Nov 2015 10:35:47 -0800 (PST)
Date: 2015-11-09T10:35:47-08:00	[thread overview]
Message-ID: <4430422a-a5e4-42e3-bcce-129eb4051e0a@googlegroups.com> (raw)
In-Reply-To: <3ca7150b-f54f-4cd1-82d9-5744cea53aad@googlegroups.com>

I am very interested in your project to port Direct Input because it directly relates to my Doom 3 project. I have actually tried in the past to port it, but the fact that it is fully OOP caused too many head aches.

This is a bit off topic, but are you aware that Microsoft has deprecated Direct Input? They recommend for you to use "Raw Input" which is actually used by the Direct Input library for all its functionality. It is possible to write your own keylogger and generic controller driver with Raw Input but again it proved too be too much of a pain to finish advanced features like those. I ended up implementing the mouse and keyboard controls with Raw Input and using Window's new XInput API to deal with Xbox controllers.

Another reason to not use Direct Input is that modern Xbox controllers have a fatal flaw with the right and left trigger where data is lost and they are tied together into one value.

Here are some links you may find helpful

Current Input API:
https://github.com/AdaDoom3/AdaDoom3/blob/master/Engine/Systems/Windows/neo-system-input-import.adb
https://github.com/AdaDoom3/AdaDoom3/blob/master/Engine/neo-system-input.ads

Key Logger Attempt:
https://github.com/AdaDoom3/AdaDoom3/blob/input/Engine/Systems/Windows/neo-system-input-import.adb


  parent reply	other threads:[~2015-11-09 18:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05 23:57 Problems Linking With a C++ Lib Aurele
2015-11-06  0:05 ` Jeffrey R. Carter
2015-11-06  0:11   ` Aurele
2015-11-06  0:56     ` Jeffrey R. Carter
2015-11-06  1:27       ` Aurele
2015-11-06  1:59         ` Jeffrey R. Carter
2015-11-06  3:07           ` Aurele
2015-11-06  3:33             ` Jeffrey R. Carter
2015-11-06  3:57               ` Aurele
2015-11-06  4:28               ` Aurele
2015-11-07  3:10                 ` Aurele
2015-11-09 18:35 ` jsquirek [this message]
2015-11-09 20:52 ` Aurele
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox