🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9550

bool IsJoystickAttached(unsigned int JSNo);

#9550
From: JS Trop
Date: Thu, 01 Jul 2004 12:05
31 lines
1618 bytes
//==========================================================================
====
/*!
 * \fn     bool IsJoystickAttached(unsigned int JSNo);

 * \brief  This function returns true if the specified joystick is available
           ie. attached to the computer.

 * \param  unsigned int JSNo : (input) Joystick number

 * \sa     ...
 Example :
          int MyJoystickNo = 2;
          if (AFDAS::GetIPAdr(NULL,&IPAdr)){
             Memo1->Lines->Add(AnsiString(inet_ntoa(IPAdr)));
          }
 */

//==========================================================================
====


bool IsJoystickAttached(unsigned int JSNo)
{

  if (Joystick JSNo is attached) //// How to test if Joystick JSNo is
attached
     return true;
  else
     return false;
}
Technical Details
Message-ID: <40e3fe01$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d329d830f6d9144f,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: <JS Trop>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: bool IsJoystickAttached(unsigned int JSNo);
Date: Thu, 1 Jul 2004 22:05:21 +1000
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 211.30.68.31
Message-ID: <40e3fe01$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088683521 211.30.68.31 (1 Jul 2004 05:05:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail