Article View: borland.public.cppbuilder.multimedia
Article #398Re: Joystick Button Problems
From: Edward
Date: Thu, 09 Dec 2004 18:14
Date: Thu, 09 Dec 2004 18:14
65 lines
2565 bytes
2565 bytes
If is illegal, why exist? Please be more clearly.
I can use FormActivate in the place of FormCreate?
void __fastcall TFormPrincipal::FormActivate(TObject *Sender)
{
}
And
void __fastcall TFormPrincipal::FormClose(TObject *Sender, TCloseAction
&Action)
{
}
in the place of FormDestroy ?
MY QUESTION :
Why i CAN NOT get the butons 5,6,7 and 8 of my USB Joystick?
When i press the buttons 1, 2, 3, and 4 all works fine...
Shape1->Visible= (msg.WParam &JOY_BUTTON1);
Shape2->Visible= (msg.WParam &JOY_BUTTON2);
Shape3->Visible= (msg.WParam &JOY_BUTTON3);
Shape4->Visible= (msg.WParam &JOY_BUTTON4);
Understand ?
And when i press
5,6,7,8 my code not work...
Thank you
Edward
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:41b88bd4$2@newsgroups.borland.com...
>
> "Edward" <eduglobo2004@globo.com> wrote in message
> news:41b88a74@newsgroups.borland.com...
>> Why i can get the butons 5,6,7 and 8 of my USB Joystick?
>
> What exactly are you having a problem with? Please be more specific.
>
>> void __fastcall TFormPrincipal::FormCreate(TObject *Sender)
>
> Do not use the OnCreate event. It is a Delphi remnant that can be
> triggered
> before the constructor, which is illegal in C++. Use the actual
> constructor
> instead.
>
>> void __fastcall TFormPrincipal::FormDestroy(TObject *Sender)
>
> Do not use the OnDestroy event. It can be triggered after the destructor,
> which is also illegal in C++. Use the actual destructor instead.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<41b89609@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.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-mailReferences:
<41b88a74@newsgroups.borland.com> <41b88bd4$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,734fce58ab6581e5 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Edward" <eduglobo2004@globo.com> From: "Edward" <eduglobo2004@globo.com> Newsgroups: borland.public.cppbuilder.multimedia References: <41b88a74@newsgroups.borland.com> <41b88bd4$2@newsgroups.borland.com> Subject: Re: Joystick Button Problems Date: Thu, 9 Dec 2004 16:14:28 -0200 Lines: 67 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 200.213.54.55 Message-ID: <41b89609@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102616073 200.213.54.55 (9 Dec 2004 10:14:33 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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