From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.140.222.19 with SMTP id s19mr9694727qhb.2.1447094147658; Mon, 09 Nov 2015 10:35:47 -0800 (PST) X-Received: by 10.182.227.200 with SMTP id sc8mr335417obc.10.1447094147622; Mon, 09 Nov 2015 10:35:47 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f78no632440qge.1!news-out.google.com!l1ni1281igd.0!nntp.google.com!i2no1883063igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 9 Nov 2015 10:35:47 -0800 (PST) In-Reply-To: <3ca7150b-f54f-4cd1-82d9-5744cea53aad@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=38.104.1.42; posting-account=0e_2YQoAAACiyvAQE9nydlmk8joBaY1J NNTP-Posting-Host: 38.104.1.42 References: <3ca7150b-f54f-4cd1-82d9-5744cea53aad@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4430422a-a5e4-42e3-bcce-129eb4051e0a@googlegroups.com> Subject: Re: Problems Linking With a C++ Lib From: jsquirek@gmail.com Injection-Date: Mon, 09 Nov 2015 18:35:47 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28281 Date: 2015-11-09T10:35:47-08:00 List-Id: I am very interested in your project to port Direct Input because it direct= ly 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 Di= rect Input? They recommend for you to use "Raw Input" which is actually use= d 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 a= gain it proved too be too much of a pain to finish advanced features like t= hose. I ended up implementing the mouse and keyboard controls with Raw Inpu= t 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 a= re 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.ad= s Key Logger Attempt: https://github.com/AdaDoom3/AdaDoom3/blob/input/Engine/Systems/Windows/neo-= system-input-import.adb