comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <dmitry@gandalf.atm.fh-luebeck.de>
Subject: Re: Joystick or gamepad package?
Date: 1999/08/11
Date: 1999-08-11T14:50:35+00:00	[thread overview]
Message-ID: <37B18EC0.CFF45F8B@gandalf.atm.fh-luebeck.de> (raw)
In-Reply-To: 7oqnrm$oe9$1@bgtnsc01.worldnet.att.net



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






  reply	other threads:[~1999-08-11  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-10  0:00 Joystick or gamepad package? Josh Highley
1999-08-11  0:00 ` Dmitry A. Kazakov [this message]
1999-08-15  0:00   ` Josh Highley
  -- strict thread matches above, loose matches on Subject: below --
1999-08-04  0:00 joystick " Josh Highley
1999-08-05  0:00 ` jboulais
replies disabled

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