realbasic-games
[Top] [All Lists]

Re: HID newbie

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: HID newbie
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Mon, 8 Nov 2004 14:29:53 -0600
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <BDB51423 dot 2097%mrebar at darkwing dot uoregon dot edu>
At 12:16 PM -0800 11/8/04, Michael Rebar wrote:

Is this the best strategy for continually accessing game pad input...?

Definitely not. WaitForElement is intended for *configuring* your input devices. You use it in the "Input Options" dialog or screen or whatever, to let the user choose what buttons, switches, sliders, or whatnot they want to bind to the various functions of your game.

While the game is running, you should never WaitForElement. Simply check the status of the elements you've already collected. And I don't see that a thread is needed for that; just do it on each frame of your game.

Best,
- Joe

--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

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