HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting keyboard events

06-20-2005, 04:26 PM#1
Mezzer
All I want to know is if there's a way to detect when a player hits a key besides the arrow keys. Since I dont know much Jass I dont have any idea how you would go about doing this, but it should be achiveable at the very least. Any ideas welcome
06-20-2005, 08:25 PM#2
Guest
You could make an ability with a certain hotkey then use the event: Unit - Starts the effect of an ability. But you wouldn't be able to find if the key was being held or released, just when it was pressed.
06-20-2005, 08:27 PM#3
Taur
edit the MPQ... something in blizzard or common .j
06-21-2005, 12:13 AM#4
PitzerMike
Quote:
Originally Posted by darkhorde
edit the MPQ... something in blizzard or common .j

No, there's nothing in common.j or blizzard.j about detecting key events (except arrow keys of course)
It's not possible (except for the dummy ability workaround).
06-22-2005, 11:41 AM#5
Mezzer
k guys thx, i like the dummy idea, but its shame blizzard didnt give us events for the entire keyboard, ah well, thx again