Chaosforge Forum

Coding => FPC Valkyrie => Topic started by: Igor Savin on May 17, 2009, 06:56

Title: Realtime input in Valkyrie
Post by: Igor Savin on May 17, 2009, 06:56
Kornel, what is the Valkyrie way of

Code: [Select]
if KeyPressed then Readkey
?
Title: Re: Realtime input in Valkyrie
Post by: Kornel Kisielewicz on May 18, 2009, 05:42
Kornel, what is the Valkyrie way of

Code: [Select]
if KeyPressed then Readkey
?
While Valkyrie was never meant to support realtime, however, vinput has a "Keypressed" method. so the following would be valid:
Code: [Select]
if Input.KeyPressed then GetKey;