B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Loads the keys to control this arcball.
   */
Loads the keys to control this arcball.
Loads the keys to control this arcball .
function TVA__loadKeys()
  {
    this.rotateKeys = {
      "up": Ci.nsIDOMKeyEvent["DOM_VK_W"],
      "down": Ci.nsIDOMKeyEvent["DOM_VK_S"],
      "left": Ci.nsIDOMKeyEvent["DOM_VK_A"],
      "right": Ci.nsIDOMKeyEvent["DOM_VK_D"],
    };
    this.panKeys = {
      "up": Ci.nsIDOMKeyEvent["DOM_VK_UP"],
      "down": Ci.nsIDOMKeyEvent["DOM_VK_DOWN"],
      "left": Ci.nsIDOMKeyEvent["DOM_VK_LEFT"],
      "right": Ci.nsIDOMKeyEvent["DOM_VK_RIGHT"],
    };
    this.zoomKeys = {
      "in": [
        Ci.nsIDOMKeyEvent["DOM_VK_I"],
        Ci.nsIDOMKeyEvent["DOM_VK_ADD"],
        Ci.nsIDOMKeyEvent["DOM_VK_EQUALS"],
      ],
      "out": [
        Ci.nsIDOMKeyEvent["DOM_VK_O"],
        Ci.nsIDOMKeyEvent["DOM_VK_SUBTRACT"],
      ],
      "unzoom": Ci.nsIDOMKeyEvent["DOM_VK_0"]
    };
    this.resetKey = Ci.nsIDOMKeyEvent["DOM_VK_R"];
  }
function TVA__loadKeys ( ) { this . rotateKeys = { "up" : Ci . nsIDOMKeyEvent [ "DOM_VK_W" ] , "down" : Ci . nsIDOMKeyEvent [ "DOM_VK_S" ] , "left" : Ci . nsIDOMKeyEvent [ "DOM_VK_A" ] , "right" : Ci . nsIDOMKeyEvent [ "DOM_VK_D" ] , } ; this . panKeys = { "up" : Ci . nsIDOMKeyEvent [ "DOM_VK_UP" ] , "down" : Ci . nsIDOMKeyEvent [ "DOM_VK_DOWN" ] , "left" : Ci . nsIDOMKeyEvent [ "DOM_VK_LEFT" ] , "right" : Ci . nsIDOMKeyEvent [ "DOM_VK_RIGHT" ] , } ; this . zoomKeys = { "in" : [ Ci . nsIDOMKeyEvent [ "DOM_VK_I" ] , Ci . nsIDOMKeyEvent [ "DOM_VK_ADD" ] , Ci . nsIDOMKeyEvent [ "DOM_VK_EQUALS" ] , ] , "out" : [ Ci . nsIDOMKeyEvent [ "DOM_VK_O" ] , Ci . nsIDOMKeyEvent [ "DOM_VK_SUBTRACT" ] , ] , "unzoom" : Ci . nsIDOMKeyEvent [ "DOM_VK_0" ] } ; this . resetKey = Ci . nsIDOMKeyEvent [ "DOM_VK_R" ] ; }
Loads the keys to control this arcball.
Loads the keys to control this arcball .