• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Can you check the -exact- time of a keyboard event?

Status
Not open for further replies.
Level 1
Joined
Jan 7, 2006
Messages
1
For a map I'm making I need to know the exact time the arrow keys are pressed - or perhaps more accurately the time between arrow presses - but I can't figure out how to go about it.


I can get the time within .2 seconds by having a simple counter than increments a hundred times a second and a trigger that fires on keypresses, saving the value of the counter when the trigger executes. The problem is that triggers seem to run in batches, the world editor only running through them every .2 seconds or so, so the time is only saved when the function executes rather than when it is put on the queue. I had similiar results trying to base the timing off the in-game time of day.



Is there anyway to check when a trigger was put on the stack?
Or perhaps some way to increase the priority of the trigger, checking back 50 times a second instead of 5?

Any help would be appreciated
 
Status
Not open for further replies.
Top