Browse Source

Merge pull request #125 from lilligreen/development

Fix for input bug in OSX
Mike Lilligreen 12 years ago
parent
commit
e829b25174
1 changed files with 5 additions and 2 deletions
  1. 5 2
      engine/source/platformOSX/osxTorqueView.mm

+ 5 - 2
engine/source/platformOSX/osxTorqueView.mm

@@ -236,7 +236,10 @@
     torqueEvent.modifier = modifiers;
     torqueEvent.modifier = modifiers;
     torqueEvent.ascii = 0;
     torqueEvent.ascii = 0;
     torqueEvent.action = action;
     torqueEvent.action = action;
-    torqueEvent.fValue = 1.0;
+    if (action == SI_BREAK)
+        torqueEvent.fValue = 0.0;
+    else
+        torqueEvent.fValue = 1.0;
     
     
     // Post the input event
     // Post the input event
     Game->postEvent(torqueEvent);
     Game->postEvent(torqueEvent);
@@ -464,4 +467,4 @@
     [self processKeyEvent:event make:NO];
     [self processKeyEvent:event make:NO];
 }
 }
 
 
-@end
+@end