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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,74513348b5a1511d X-Google-Attributes: gid103376,public From: "Dmitry A. Kazakov" Subject: Re: Joystick or gamepad package? Date: 1999/08/11 Message-ID: <37B18EC0.CFF45F8B@gandalf.atm.fh-luebeck.de>#1/1 X-Deja-AN: 511464278 Content-Transfer-Encoding: 7bit References: <7oqnrm$oe9$1@bgtnsc01.worldnet.att.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@de.uu.net Organization: Customer of UUNET Deutschland GmbH, Dortmund, Germany Mime-Version: 1.0 NNTP-Posting-Date: 11 Aug 1999 14:50:35 GMT Newsgroups: comp.lang.ada Date: 1999-08-11T14:50:35+00:00 List-Id: Josh Highley wrote: > Does anyone know of an Ada package for using a joystick or gamepad? > > I haven't done much Win32 programming and I wasn't able to get the win32 > services working. A short code snipet using the joystick procedures in > "win32.mmsystem.ads" would probably get me going. At this point, all I need > to know is how to read the position of the stick -- not the buttons. You can use joyGetPos, which fills JOYINFO structure in. I do not know which Win32 bindings you use, but it should be no problem to call this function directly from winmm.lib. Regards, Dmitry