Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Windows / [SOLVED] [tier 2]GetRawKeyPressed return zero in main Loop

Author
Message
XANAX 2B
20
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 26th Oct 2022 01:22
Hello,

There is something i'm doing wrong for my first tier 2 project : GetRawKeyPressed always return 0 here.
If I replace it by GetRawKeyState, the program exit when I press escape key, and that is what i want to do with GetRawKeyPressed.
An idea ?

Emotional High Potential

The author of this post has marked a post as an answer.

Go to answer

XANAX 2B
20
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 26th Oct 2022 01:26
This post has been marked by the post author as the answer.
... Finally found it : agk::GetRawKeyPressed() should be before agk::Sync() to work.
Emotional High Potential

Login to post a reply

Server time is: 2024-03-28 16:26:06
Your offset time is: 2024-03-28 16:26:06