realbasic-games
[Top] [All Lists]

HID newbie

To: <realbasic-games at lists dot realsoftware dot com>
Subject: HID newbie
From: Michael Rebar <mrebar at darkwing dot uoregon dot edu>
Date: Mon, 08 Nov 2004 12:16:35 -0800
Delivered-to: realbasic-games at lists dot realsoftware dot com
Hi, new to the games list...

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


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>