realbasic-games
[Top] [All Lists]

Re: GameInputDevice question

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: GameInputDevice question
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Wed, 31 Aug 2005 08:33:32 -0600
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <f5dff5abf01041ee1e36d4b9cf5fa456 at gymfactory dot de>
At 1:52 PM +0200 8/31/05, Oliver Stoll (SoftwareDev) wrote:

Now here is the question - how can I make my application to poll at least the three buttons and react on a button pressure (with different reactions on each button) ? How can I find out if a user pressed a button and which button ?

It sounds like you've already learned how to poll the available GameInputDevices, and within those, iterate over the GameInputElements.

So now it's a simple matter of storing the GameInputElements of interest, and periodically checking their .Value property.

Best,
- Joe

--
Joe Strout                          REAL Software, Inc.

Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>