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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!postnews.google.com!g8g2000yqa.googlegroups.com!not-for-mail From: tolkamp Newsgroups: comp.lang.ada Subject: Re: How to interface in ADA with Microsoft joystick? Date: Fri, 8 Oct 2010 01:48:54 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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> <1thnsl7r3l217.1g1mvpwzjokvr.dlg@40tude.net> NNTP-Posting-Host: 62.163.210.190 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1286564481 13475 127.0.0.1 (8 Oct 2010 19:01:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 8 Oct 2010 19:01:21 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g8g2000yqa.googlegroups.com; posting-host=62.163.210.190; posting-account=nZAcngoAAACcfYM9wDw3w9Z1XR3bObfs User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1; .NET4.0C),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14439 Date: 2010-10-08T01:48:54-07:00 List-Id: On 5 okt, 19:03, "Dmitry A. Kazakov" wrote: > 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. Kazakovhttp://www.dmitry-kazakov.de I prefer to use joyGetPosEx in an ADA task loop. On this website http://www.adapower.com/index.php?Command=Class&ClassID=Bindings&CID=388 I found the package Win32.Joystick. Is this package usable to add to my project? Regards, Fred Tolkamp