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.

Dark GDK / Scancode Trouble

Author
Message
Foz
16
Years of Service
User Offline
Joined: 18th Dec 2007
Location: California
Posted: 5th Nov 2008 01:33
Why does the following code automatically exit without any keyboard input as if the condition were always true?



If I reword the 'if' statement to "if (key_code)" then it patiently waits for a key to be pressed, as expected...


Foz, I am.
Lion Jin
18
Years of Service
User Offline
Joined: 24th Sep 2006
Location:
Posted: 5th Nov 2008 02:53
key_code "==" 45 ,not "="
Foz
16
Years of Service
User Offline
Joined: 18th Dec 2007
Location: California
Posted: 5th Nov 2008 07:11
wow - I guess it's been longer than I thought since using a C lanquage. Where'z the 'delete entire thread' button...?


Foz, I am.

Login to post a reply

Server time is: 2024-11-25 05:34:27
Your offset time is: 2024-11-25 05:34:27