Chaosforge Forum

  • November 17, 2019, 20:11
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Realtime input in Valkyrie  (Read 4240 times)

Igor Savin

  • Elder Chaos Guard
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 180
    • View Profile
Realtime input in Valkyrie
« on: May 17, 2009, 06:56 »

Kornel, what is the Valkyrie way of

Code: [Select]
if KeyPressed then Readkey
?
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4470
    • View Profile
    • http://chaosforge.org/
Re: Realtime input in Valkyrie
« Reply #1 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;

Logged
at your service,
Kornel Kisielewicz
Pages: [1]