Jass documentation Database

JASS Documentation Database REFORGED

Results for the query "TriggerRegisterPlayerKeyEventBJ" as a "function"

The search keyword must be a single word (no spaces).

Function TriggerRegisterPlayerKeyEventBJ

Line: 1744
Location: blizzard.j
Constant? no
Type: function
Arguments: trigger trig, player whichPlayer, integer keType, integer keKey
Returns: event


Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. function TriggerRegisterPlayerKeyEventBJ takes trigger trig, player whichPlayer, integer keType, integer keKey returns event
  2.     if (keType == bj_KEYEVENTTYPE_DEPRESS) then
  3.         // Depress event - find out what key
  4.         if (keKey == bj_KEYEVENTKEY_LEFT) then
  5.             return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_ARROW_LEFT_DOWN)
  6.         elseif (keKey == bj_KEYEVENTKEY_RIGHT) then
  7.             return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_ARROW_RIGHT_DOWN)
  8.         elseif (keKey == bj_KEYEVENTKEY_DOWN) then
  9.             return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_ARROW_DOWN_DOWN)
  10.         elseif (keKey == bj_KEYEVENTKEY_UP) then
  11.             return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_ARROW_UP_DOWN)
  12.         else
  13.             // Unrecognized key - ignore the request and return failure.
  14.             return null
  15.         endif
  16.     elseif (keType == bj_KEYEVENTTYPE_RELEASE) then
  17.         // Release event - find out what key
  18.         if (keKey == bj_KEYEVENTKEY_LEFT) then
  19.             return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_ARROW_LEFT_UP)
  20.         elseif (keKey == bj_KEYEVENTKEY_RIGHT) then
  21.             return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_ARROW_RIGHT_UP)
  22.         elseif (keKey == bj_KEYEVENTKEY_DOWN) then
  23.             return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_ARROW_DOWN_UP)
  24.         elseif (keKey == bj_KEYEVENTKEY_UP) then
  25.             return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_ARROW_UP_UP)
  26.         else
  27.             // Unrecognized key - ignore the request and return failure.
  28.             return null
  29.         endif
  30.     else
  31.         // Unrecognized type - ignore the request and return failure.
  32.         return null
  33.     endif
  34. endfunction
"Uh-oh, my Tinker bell." Hmmm... there's no info about this keyword... be the first one in contribute with the keyword TriggerRegisterPlayerKeyEventBJ. You must be logged into the site in order to give us a hand in keeping updated the information. If you don't have an account, you can create one here.
Page loaded in 0.1013 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...