What exact piece of code I must write? Thanks in advance.
Code for key pressed question.
Started by RacerBG, Apr 17 2012 06:51 PM
2 replies to this topic
#1
Posted 17 April 2012 - 06:51 PM
Usually the code for key_pressed for tab, shift and the other function keys works normally. But what code I must write for a pressed LETTER key? Seems like key_pressed(w) for example does not work.....
What exact piece of code I must write? Thanks in advance.
What exact piece of code I must write? Thanks in advance.
#2
Posted 17 April 2012 - 06:53 PM
keyboard_check_pressed(ord('W'))
with capital letter
with capital letter
#3
Posted 17 April 2012 - 06:55 PM
Thank you very much man, this is much appreciated.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











