[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx: [441] trunk/fuse/fusepb/controllers
Brought to you by:
fredm
|
From: <fr...@us...> - 2007-08-03 10:15:19
|
Revision: 441
http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=441&view=rev
Author: fredm
Date: 2007-08-03 03:15:21 -0700 (Fri, 03 Aug 2007)
Log Message:
-----------
Remove obsolete key release methods.
Modified Paths:
--------------
trunk/fuse/fusepb/controllers/FuseController.h
trunk/fuse/fusepb/controllers/FuseController.m
Modified: trunk/fuse/fusepb/controllers/FuseController.h
===================================================================
--- trunk/fuse/fusepb/controllers/FuseController.h 2007-07-28 12:44:41 UTC (rev 440)
+++ trunk/fuse/fusepb/controllers/FuseController.h 2007-08-03 10:15:21 UTC (rev 441)
@@ -133,9 +133,6 @@
- savePanelAccessoryView;
- (NSPopUpButton*) saveFileType;
-- (void) releaseCmdKeys:(NSString *)character:(int)keyCode;
-- (void) releaseKey:(int)keyCode;
-
- (void)ui_menu_activate_media_cartridge:(NSNumber*)active;
- (void)ui_menu_activate_media_cartridge_dock:(NSNumber*)active;
- (void)ui_menu_activate_media_cartridge_dock_eject:(NSNumber*)active;
Modified: trunk/fuse/fusepb/controllers/FuseController.m
===================================================================
--- trunk/fuse/fusepb/controllers/FuseController.m 2007-07-28 12:44:41 UTC (rev 440)
+++ trunk/fuse/fusepb/controllers/FuseController.m 2007-08-03 10:15:21 UTC (rev 441)
@@ -895,55 +895,6 @@
[super dealloc];
}
-/*------------------------------------------------------------------------------
- * releaseCmdKeys - This method fixes an issue when modal windows are used with
- * the Mac OSX version of the SDL library.
- * As the SDL normally captures all keystrokes, but we need to type in some
- * Mac windows, all of the control menu windows run in modal mode. However,
- * when this happens, the release of the command key and the shortcut key
- * are not sent to SDL. We have to manually cause these events to happen
- * to keep the SDL library in a sane state, otherwise only every other
- * shortcut keypress will work.
- *-----------------------------------------------------------------------------*/
-- (void) releaseCmdKeys:(NSString *)character:(int)keyCode
-{
- NSEvent *event1, *event2;
- NSPoint point;
-
- event1 = [NSEvent keyEventWithType:NSKeyUp location:point modifierFlags:0
- timestamp:nil windowNumber:0 context:nil characters:character
- charactersIgnoringModifiers:character isARepeat:NO
- keyCode:keyCode];
- [NSApp postEvent:event1 atStart:NO];
-
- event2 = [NSEvent keyEventWithType:NSFlagsChanged location:point
- modifierFlags:0 timestamp:nil windowNumber:0 context:nil
- characters:nil charactersIgnoringModifiers:nil isARepeat:NO
- keyCode:0];
- [NSApp postEvent:event2 atStart:NO];
-}
-
-/*------------------------------------------------------------------------------
- * releaseKey - This method fixes an issue when modal windows are used with
- * the Mac OSX version of the SDL library.
- * As the SDL normally captures all keystrokes, but we need to type in some
- * Mac windows, all of the control menu windows run in modal mode. However,
- * when this happens, the release of function key which started the process
- * is not sent to SDL. We have to manually cause these events to happen
- * to keep the SDL library in a sane state, otherwise only everyother shortcut
- * keypress will work.
- *-----------------------------------------------------------------------------*/
-- (void) releaseKey:(int)keyCode
-{
- NSEvent *event1;
- NSPoint point;
-
- event1 = [NSEvent keyEventWithType:NSKeyUp location:point modifierFlags:0
- timestamp:nil windowNumber:0 context:nil characters:@" "
- charactersIgnoringModifiers:@" " isARepeat:NO keyCode:keyCode];
- [NSApp postEvent:event1 atStart:NO];
-}
-
- (void)ui_menu_activate_media_cartridge:(NSNumber*)active
{
[cart setEnabled:[active boolValue]];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|