Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/src/js/jgame.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 85 by tsugehara, Mon Apr 22 05:53:26 2013 UTC revision 90 by tsugehara, Mon Apr 22 13:53:33 2013 UTC
# Line 3006  var jg; Line 3006  var jg;
3006              this.inputEventMap[jg.InputEventType.Point][jg.InputEventAction.Down] = "pointDown";              this.inputEventMap[jg.InputEventType.Point][jg.InputEventAction.Down] = "pointDown";
3007              this.inputEventMap[jg.InputEventType.Point][jg.InputEventAction.Move] = "pointMove";              this.inputEventMap[jg.InputEventType.Point][jg.InputEventAction.Move] = "pointMove";
3008              this.inputEventMap[jg.InputEventType.Point][jg.InputEventAction.Up] = "pointUp";              this.inputEventMap[jg.InputEventType.Point][jg.InputEventAction.Up] = "pointUp";
             this.keyboardHandler();  
             this.pointHandler();  
3009              if(document.getElementById("fps_show")) {              if(document.getElementById("fps_show")) {
3010                  this.fps = document.getElementById("fps_show");                  this.fps = document.getElementById("fps_show");
3011              }              }
# Line 3125  var jg; Line 3123  var jg;
3123              this.isPointDown = false;              this.isPointDown = false;
3124              e.preventDefault();              e.preventDefault();
3125          };          };
3126          Game.prototype.pointHandler = function () {          Game.prototype.enablePointHandler = function () {
3127              this.dragParam = null;              this.dragParam = null;
3128              try  {              try  {
3129                  if(this.isTouchEnable()) {                  if(this.isTouchEnable()) {
# Line 3154  var jg; Line 3152  var jg;
3152                  e.preventDefault();                  e.preventDefault();
3153              }              }
3154          };          };
3155          Game.prototype.keyboardHandler = function () {          Game.prototype.enableKeyboardHandler = function () {
3156              try  {              try  {
3157                  document.addEventListener("keydown", jg.JGUtil.proxy(this.onkeydown, this), false);                  document.addEventListener("keydown", jg.JGUtil.proxy(this.onkeydown, this), false);
3158                  document.addEventListener("keyup", jg.JGUtil.proxy(this.onkeyup, this), false);                  document.addEventListener("keyup", jg.JGUtil.proxy(this.onkeyup, this), false);

Legend:
Removed from v.85  
changed lines
  Added in v.90

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26