- Joined
- Oct 31, 2009
- Messages
- 352
I need to know how to detect presses/releases for the following keyboard actions:
- W
- A
- S
- D
- Space Bar
Any help would be appreciated
- W
- A
- S
- D
- Space Bar
Any help would be appreciated
As for the rest of the keys, pressing can be detected by giving units spells with the hotkey of the key you want to detect.
But only pressing is detectable, not releasing and holding.
My map is single player so this isn't a problem, but how do I refer to the event? (can it be done in GUI?)Spacebar detection is only achievable in single player because of desyncs.
Yeah, for the Spacebar event, I've also thought of Element of Water's solution, but apparently, that way can be inefficient, because some player may keep his camera hovering over the spacebar point, yet he has no spacebar button pressed. You would need some sort of camera lock to detect that, but still, this is something I haven't thought through enough.