HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Keyboard Events

09-03-2006, 12:04 AM#1
Exilus
i have noticed the GUI triggers events only support the arrow key events. is it possible to create a trigger wich would trigger when another key is pressed/released? (F, G, Tab, Etc..)
09-03-2006, 12:07 AM#2
blu_da_noob
Not directly no. You could have a unit with abilities (the hotkeys of which correspond to the keys you want to detect) and detect when these abilities are cast.
09-03-2006, 12:11 AM#3
Exilus
yes, but it wouldnt detect when the key is released. the game im making is a kind of shooters. you move with arrows and i wanted when you kept "F" pressed, to have the guy constantly shoot bullets until "F" is released. ive heard it was possible to be done in JASS
09-03-2006, 12:16 AM#4
Naakaloh
It is not. You could make it keep firing until you hit F again... but that has different effect than you probably want.
09-03-2006, 12:18 AM#5
martix
I think not... this works only for the arrow keys.
What I'm thinking is an ability that is turned on/off and you detecting this(detect the orders).
09-03-2006, 12:23 AM#6
Tim.
I told you before, it's impossible. If it was possible I would have done it for my FPSMod.
09-03-2006, 02:04 AM#7
Aazimir
well, how do you do this firing spell? do you add a value to a variable or something? coz then i could help a bit
09-03-2006, 03:49 AM#8
Tim.
No it cannot. There is no way to detect when a non arrow key is released. Period.
09-03-2006, 09:49 AM#9
The)TideHunter(
Yep.
Best you can do with is a selected unit has an ability with that hotkey, even then, thats not great, but its the best you have.