realbasic-games
[Top] [All Lists]

Re: HID newbie

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: HID newbie
From: Rasmus Lindén <rasmuslinden at gmail dot com>
Date: Mon, 8 Nov 2004 21:27:35 +0100
Delivered-to: realbasic-games at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=hwHIgu7Ik2AWQ7D2pj+PHKxzXfDstrowP2r7MRSYom/bEmQ+eCEO3mdTix8WZjtMNyx4wdiYYIQlpRx47xt2pY5oChbZ/cpLUdbebR3snJU7w3TsY4N2MS/XinD46bygvuhlC8tMNrd0/bvrGO2h9ROBOQ9/NwTExVtszF0HhXM=
References: <BDB51423 dot 2097%mrebar at darkwing dot uoregon dot edu>
> Hi, new to the games list...
> 
> Is this the best strategy for continually accessing game pad input...?

Uhm, no. It's much better to make a control setup window and then just
check those keys.
For an example, check out the Space Spuds code.
> 
> Create a thread & in its run handler, use code similar to the following...
> 
>   while x < 1000  // infinite loop
>     mFireButton=mManager.WaitForElement(10)
> 
>     If mFireButton <> Nil and mFireButton.name ="Button #7" then
>        //do button 7 stuff
>     End if
> 
>     If mFireButton <> Nil and mFireButton.name ="Button #8" then
>        //do button 8 stuff
>     End if
>   wend  // infinite loop
> 
> TIA,
> 
> Michael
_______________________________________________
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>