Coding > FPC Valkyrie

Realtime input in Valkyrie

(1/1)

Igor Savin:
Kornel, what is the Valkyrie way of


--- Code: ---if KeyPressed then Readkey
--- End code ---

?

Kornel Kisielewicz:

--- Quote from: Igor Savin on May 17, 2009, 06:56 ---Kornel, what is the Valkyrie way of


--- Code: ---if KeyPressed then Readkey
--- End code ---

?

--- End quote ---
While Valkyrie was never meant to support realtime, however, vinput has a "Keypressed" method. so the following would be valid:

--- Code: ---if Input.KeyPressed then GetKey;

--- End code ---

Navigation

[0] Message Index

Go to full version