Browse Source

Disable sample rate checks in ps2 for now

copy 8 years ago
parent
commit
96272495a3
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/ps2.js

+ 6 - 5
src/ps2.js

@@ -15,6 +15,7 @@ function PS2(cpu, bus)
 
     /** @type {boolean} */
     this.enable_mouse_stream = false;
+
     /** @type {boolean} */
     this.use_mouse = false;
 
@@ -217,11 +218,11 @@ PS2.prototype.mouse_send_delta = function(delta_x, delta_y)
         {
             var now = Date.now();
 
-            if(now - this.last_mouse_packet < 1000 / this.sample_rate)
-            {
-                // TODO: set timeout
-                return;
-            }
+            //if(now - this.last_mouse_packet < 1000 / this.sample_rate)
+            //{
+            //    // TODO: set timeout
+            //    return;
+            //}
 
             this.mouse_delta_x -= change_x;
             this.mouse_delta_y -= change_y;