Chaosforge Forum

  • March 28, 2024, 05:54
  • Welcome, Guest
Please login or register.



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

Author Topic: Realtime input in Valkyrie  (Read 7828 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: 4562
    • 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]