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.

Newcomers DBPro Corner / how do u check to see if any key has been pressed?

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 9th Sep 2007 23:57
im not sure how to code this.
Code Dragon
18
Years of Service
User Offline
Joined: 21st Aug 2006
Location: Everywhere
Posted: 10th Sep 2007 00:58
keystate() is what you need

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 10th Sep 2007 01:59
Have you ever seen the F1 key on your keyboard?

TDK_Man

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 10th Sep 2007 12:01
I get very confused with David's questions. He has been around for years, asks lots of questions about complex stuff like physics, ai and writing games, etc, then all of a sudden asks how to detect a key press.

Boo!
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 10th Sep 2007 23:58
thanks! yeah i figured out it was if scancode..

ive never tried this before.sorry spooky i should start looking at the help before coming here.guess im just lazy.

Login to post a reply

Server time is: 2024-11-26 10:33:19
Your offset time is: 2024-11-26 10:33:19