🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Using GetAsyncKeyState() ?!!

#14337
From: Schandler
Date: Sun, 17 Aug 2003 08:08
11 lines
1402 bytes
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

int check key = GetAsyncKeyState(VK_SHIFT);
but it didn't work correctly

does any one know about it ?
Technical Details
Message-ID: <3f3f3635@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,64528418f36af68,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-17 01:22:40 PST
From: "Schandler" <theslider@programmer.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Using GetAsyncKeyState() ?!!
Date: Sun, 17 Aug 2003 11:08:23 +0300
Lines: 14
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.44
Message-ID: <3f3f3635@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061107253 62.68.240.44 (17 Aug 2003 01:00:53 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.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