View Single Post
Old 04-04-2010, 04:58 PM   #15
SFilip's Avatar
Join Date: Mar 2006
Posts: 321

SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)SFilip has a spectacular aura about (111)

Send a message via MSN to SFilip

Right, the second integer parameter for TriggerRegisterKeyEvent and TriggerRegisterMouseEvent is not key, it's etype, that was a typo (fixed now).
Possible etype values for TriggerRegisterKeyEvent:
Collapse JASS:
constant integer EVENT_KEYUP = 0
constant integer EVENT_KEYDOWN = 1
constant integer EVENT_KEYTYPE = 2
And for TriggerRegisterMouseEvent:
Collapse JASS:
constant integer EVENT_LMOUSEUP = 0
constant integer EVENT_LMOUSEDOWN = 1
constant integer EVENT_RMOUSEUP = 2
constant integer EVENT_RMOUSEDOWN = 3
constant integer EVENT_MMOUSEUP = 4
constant integer EVENT_MMOUSEDOWN = 5
constant integer EVENT_MOUSEWHEEL = 6

Attached the new common.j with these constants defined, but you can just type the numbers directly if you want.
Attached Files
File Type: zip (23.4 KB, 53 views)
Want to create your own natives for Jass? Try RtC project's nAPI
SFilip is offline   Reply With Quote