Don't let the app control itself, it only leads to accidents or mouse bugs. Don't...
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 14 Mar 2013 20:10:22 +0000 (21:10 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 14 Mar 2013 20:10:22 +0000 (21:10 +0100)
Classes/NJDeviceController.m
Info.plist
Resources/Help/Contents/Resources/English.lproj/pgs/mouse.html
Resources/Help/Contents/Resources/English.lproj/pgs/whatsnew.html

index 39ec389..0b0fe92 100644 (file)
     [self expandRecursive:handler];
     [outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:[outlineView rowForItem:handler]]
              byExtendingSelection: NO];
     [self expandRecursive:handler];
     [outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:[outlineView rowForItem:handler]]
              byExtendingSelection: NO];
-    [outputController focusKey];
+    if (!self.simulatingEvents)
+        [outputController focusKey];
 }
 
 - (void)hidManager:(NJHIDManager *)manager
       valueChanged:(IOHIDValueRef)value
         fromDevice:(IOHIDDeviceRef)device {
 }
 
 - (void)hidManager:(NJHIDManager *)manager
       valueChanged:(IOHIDValueRef)value
         fromDevice:(IOHIDDeviceRef)device {
-    if (self.simulatingEvents) {
+    if (self.simulatingEvents
+        && !NSApplication.sharedApplication.isActive) {
         [self runOutputForDevice:device value:value];
     } else {
         [self showOutputForDevice:device value:value];
         [self runOutputForDevice:device value:value];
     } else {
         [self showOutputForDevice:device value:value];
index 0ea7a95..ed9e83f 100644 (file)
@@ -46,7 +46,7 @@
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
-       <string>298</string>
+       <string>301</string>
        <key>LSApplicationCategoryType</key>
        <string>public.app-category.utilities</string>
        <key>NSHumanReadableCopyright</key>
        <key>LSApplicationCategoryType</key>
        <string>public.app-category.utilities</string>
        <key>NSHumanReadableCopyright</key>
index 5436540..f52c5b6 100644 (file)
       change this globally in <b> > System Preferences… > Mouse</b>
       and <b> > System Preferences… > Trackpad</b>.
     </p>
       change this globally in <b> > System Preferences… > Mouse</b>
       and <b> > System Preferences… > Trackpad</b>.
     </p>
-    
-    <h3><a name="mouseissues"></a>Known Issues</h3>
-    <p>
-      Enjoyable is unable to send most mouse events to itself - the
-      application will freeze until you click on it with a real mouse
-      or touchpad. If you find another appliation that has problems
-      with Enjoyable's mouse support <a
-      href="https://github.com/joewreschnig/enjoyable/issues">please
-      file a ticket in the issue tracker</a>.
-    </p>    
   </body>
 </html>
   </body>
 </html>
index 961e84c..3506443 100644 (file)
               Enjoyable uses fewer resources when running in the
               background.
             </li>
               Enjoyable uses fewer resources when running in the
               background.
             </li>
+            <li>
+              To prevent accidentally rebinding keys right after
+              enabling simulation, Enjoyable can no longer control
+              itself.
+            </li>
         </ul>
     </body>
 </html>
         </ul>
     </body>
 </html>