Jump to content


Photo

Code for key pressed question.


  • Please log in to reply
2 replies to this topic

#1 RacerBG

RacerBG

    GMC Member

  • GMC Member
  • 193 posts
  • Version:GM8

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.
  • 0

#2 jo-thijs

jo-thijs

    GMC Member

  • GMC Member
  • 1453 posts
  • Version:GM8.1

Posted 17 April 2012 - 06:53 PM

keyboard_check_pressed(ord('W'))
with capital letter
  • 1

#3 RacerBG

RacerBG

    GMC Member

  • GMC Member
  • 193 posts
  • Version:GM8

Posted 17 April 2012 - 06:55 PM

Thank you very much man, this is much appreciated.Posted Image
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users