Posts by lolman40
2 posts total, newest first.
C++ check if button pressedin Counter-Strike 2 Coding & Resources - [QUOTE=affe2626;12876648]
GetAsyncKeyState(button) & 1;
So, your code would look like:
int main()
{
while (1)
{
if (GetAsyncKeyState(VK_INSERT) & 1) {
//Command
}
}
}
[/QUOTE]
It is still spamming tough.C++ check if button pressedin Counter-Strike 2 Coding & Resources - In c++ how do i check if a key is pressed ( not GetAsyncKeyState/GetKeyState because when I hold it down it spams the command)
bobo bobo bobo
int main()
{
while (1)
{
if (GetAsyncKeyState(VK_INSERT)) {
Showing the 2 most recent posts.