Article View: borland.public.cppbuilder.nativeapi
Article #14340Re: Using GetAsyncKeyState() ?!!
From: Schandler
Date: Sun, 17 Aug 2003 12:19
Date: Sun, 17 Aug 2003 12:19
23 lines
1761 bytes
1761 bytes
Thanks Chris, I will try it out "Chris Hill" <Chris244@aol.com> wrote in message news:3f3f5610.3143789530@forums.borland.com... > On Sun, 17 Aug 2003 11:08:23 +0300, "Schandler" > <theslider@programmer.net> wrote: > > >I want to use the api function GetAsyncKeyState (int vkey) to know if a > >specified key is down at the moment I'm calling the function > >the win32 api help says that the function detectes if the key is down if the > >"most significant bit is set" !! which I don't know what it means > >I tried to call the function to check if the Shift key is pressed on windows > >98 as follows > > Try this: > int keydown = (GetAsyncKeyState(VK_SHIFT) < 0); > > > Chris Hill > Chris244@aol.com
Technical Details
Message-ID:
<3f3f70f9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f3f3635@newsgroups.borland.com> <3f3f5610.3143789530@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,64528418f36af68 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-17 05:23:32 PST From: "Schandler" <theslider@programmer.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f3f3635@newsgroups.borland.com> <3f3f5610.3143789530@forums.borland.com> Subject: Re: Using GetAsyncKeyState() ?!! Date: Sun, 17 Aug 2003 15:19:07 +0300 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 62.68.240.226 Message-ID: <3f3f70f9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061122297 62.68.240.226 (17 Aug 2003 05:11:37 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail