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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4d1b41004c1d217c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How to interface in ADA with Microsoft joystick? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <2edbcdab-8ff5-40e6-9ac0-44be6cb93621@m15g2000yqm.googlegroups.com> <1ne6iis0we6lt.7ftiqb64g582.dlg@40tude.net> <04cf664d-62bd-4e2e-8aaa-cd4654ea327e@26g2000yqv.googlegroups.com> <1cd6pmbvbsnkb$.uwz2048291is.dlg@40tude.net> <3a82f59a-129f-46b1-bd0c-eae124136590@26g2000yqv.googlegroups.com> <0402e3f7-151c-4a51-bd61-44f4fc32a9d1@l20g2000yqm.googlegroups.com> Date: Tue, 5 Oct 2010 19:03:11 +0200 Message-ID: <1thnsl7r3l217.1g1mvpwzjokvr.dlg@40tude.net> NNTP-Posting-Date: 05 Oct 2010 19:03:10 CEST NNTP-Posting-Host: c524032f.newsspool2.arcor-online.net X-Trace: DXC=A=XVg`Xo]>Q=>bdbdS?M0YA9EHlD;3YcR4Fo<]lROoRQ8kF On Tue, 5 Oct 2010 08:32:21 -0700 (PDT), tolkamp wrote: > What is the next step to interface with the Microsoft Joystick? Studying the MS documentation and examples on the subject: http://msdn.microsoft.com/en-us/library/dd757121%28v=VS.85%29.aspx You can either make the Windows MM system sending messages to a window and process them in the messages loop (joySetCapture), or just poll the joystick state from a tight loop in an Ada task (joyGetPosEx). P.S. This is not Ada specific, i.e. an off-topic here. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de