summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFInput
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-09 20:49:54 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-09 20:49:54 +0000
commit4d55a8b8254dff61fdc7b1959f6aef7eafbd9439 (patch)
treefb5e56131a7c8b729641c70e7a87883ebaea5186 /macosx/plugins/DFInput
parent71d6c56271e2650b1a2f5149521a5b1896084710 (diff)
downloadpcsxr-4d55a8b8254dff61fdc7b1959f6aef7eafbd9439.tar.gz
Patch 10767 (Durandal_1707).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72138 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFInput')
-rw-r--r--macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj81
-rw-r--r--macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/classes.nib33
-rw-r--r--macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/info.nib21
-rw-r--r--macosx/plugins/DFInput/macsrc/ControllerList.h5
-rw-r--r--macosx/plugins/DFInput/macsrc/MappingCell.m4
-rw-r--r--macosx/plugins/DFInput/macsrc/cfg.c4
6 files changed, 52 insertions, 96 deletions
diff --git a/macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj b/macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj
index 683ca520..fc68b0a0 100644
--- a/macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj
+++ b/macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj
@@ -3,10 +3,11 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 42;
+ objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
+ 28586CC314651E730082B8EC /* NetPcsxrHIDInputPluginMain.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28586CC114651E730082B8EC /* NetPcsxrHIDInputPluginMain.xib */; };
2B679862069193F300E2BD4F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B679860069193F300E2BD4F /* Cocoa.framework */; };
2B679863069193F300E2BD4F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B679861069193F300E2BD4F /* IOKit.framework */; };
71054E211204A49F00AC2CCB /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71054E201204A49F00AC2CCB /* ForceFeedback.framework */; };
@@ -63,7 +64,6 @@
71D88862130F032700F150FF /* SDL_error_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 71D8882C130F032700F150FF /* SDL_error_c.h */; };
71E861B611FF75AC001C1826 /* PadView.h in Headers */ = {isa = PBXBuildFile; fileRef = 71E861AC11FF75AC001C1826 /* PadView.h */; };
71E861B711FF75AC001C1826 /* PadView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71E861AD11FF75AC001C1826 /* PadView.m */; };
- 71E861BC11FF75BA001C1826 /* NetPcsxrHIDInputPluginMain.nib in Resources */ = {isa = PBXBuildFile; fileRef = 71E861BA11FF75BA001C1826 /* NetPcsxrHIDInputPluginMain.nib */; };
8D576314048677EA00EA77CD /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */; };
8D5B49A804867FD3000E48DA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 8D5B49A704867FD3000E48DA /* InfoPlist.strings */; };
/* End PBXBuildFile section */
@@ -71,16 +71,17 @@
/* Begin PBXFileReference section */
089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = "<absolute>"; };
+ 28586CC214651E730082B8EC /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/NetPcsxrHIDInputPluginMain.xib; sourceTree = "<group>"; };
2B679860069193F300E2BD4F /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
2B679861069193F300E2BD4F /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = "<absolute>"; };
71054E201204A49F00AC2CCB /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ForceFeedback.framework; path = /System/Library/Frameworks/ForceFeedback.framework; sourceTree = "<absolute>"; };
7136F51912011BB4001973D9 /* English */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = English; path = English.lproj/Credits.rtf; sourceTree = "<group>"; };
- 714FA82A11FC822A00517F47 /* analog.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = analog.c; path = ../../../plugins/dfinput/analog.c; sourceTree = SOURCE_ROOT; };
+ 714FA82A11FC822A00517F47 /* analog.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; lineEnding = 0; name = analog.c; path = ../../../plugins/dfinput/analog.c; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.c; };
714FA82B11FC822A00517F47 /* pad.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = pad.c; path = ../../../plugins/dfinput/pad.c; sourceTree = SOURCE_ROOT; };
714FA82C11FC822A00517F47 /* pad.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = pad.h; path = ../../../plugins/dfinput/pad.h; sourceTree = SOURCE_ROOT; };
714FA82D11FC822A00517F47 /* sdljoy.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = sdljoy.c; path = ../../../plugins/dfinput/sdljoy.c; sourceTree = SOURCE_ROOT; };
714FA89F11FC846800517F47 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; };
- 714FA8F811FC863500517F47 /* cfg.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = cfg.c; path = macsrc/cfg.c; sourceTree = "<group>"; };
+ 714FA8F811FC863500517F47 /* cfg.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; lineEnding = 0; name = cfg.c; path = macsrc/cfg.c; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.c; };
714FA8F911FC863500517F47 /* xkb.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = xkb.c; path = macsrc/xkb.c; sourceTree = "<group>"; };
7192EAAB1200D54500038B92 /* cfg.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = cfg.h; path = macsrc/cfg.h; sourceTree = "<group>"; };
71C7B252130F3904004BF975 /* SDL_syscond.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = SDL_syscond.c; path = ../Common/SDL/src/thread/pthread/SDL_syscond.c; sourceTree = SOURCE_ROOT; };
@@ -108,7 +109,7 @@
71D88806130F032700F150FF /* SDL_stdinc.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = SDL_stdinc.h; path = ../Common/SDL/include/SDL_stdinc.h; sourceTree = SOURCE_ROOT; };
71D88807130F032700F150FF /* SDL_thread.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = SDL_thread.h; path = ../Common/SDL/include/SDL_thread.h; sourceTree = SOURCE_ROOT; };
71D8881F130F032700F150FF /* SDL_syshaptic.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = SDL_syshaptic.c; path = ../Common/SDL/src/haptic/darwin/SDL_syshaptic.c; sourceTree = SOURCE_ROOT; };
- 71D88820130F032700F150FF /* SDL_haptic.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = SDL_haptic.c; path = ../Common/SDL/src/haptic/SDL_haptic.c; sourceTree = SOURCE_ROOT; };
+ 71D88820130F032700F150FF /* SDL_haptic.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; lineEnding = 0; name = SDL_haptic.c; path = ../Common/SDL/src/haptic/SDL_haptic.c; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.c; };
71D88821130F032700F150FF /* SDL_haptic_c.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = SDL_haptic_c.h; path = ../Common/SDL/src/haptic/SDL_haptic_c.h; sourceTree = SOURCE_ROOT; };
71D88822130F032700F150FF /* SDL_syshaptic.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = SDL_syshaptic.h; path = ../Common/SDL/src/haptic/SDL_syshaptic.h; sourceTree = SOURCE_ROOT; };
71D88825130F032700F150FF /* SDL_sysjoystick.c */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.c; name = SDL_sysjoystick.c; path = ../Common/SDL/src/joystick/darwin/SDL_sysjoystick.c; sourceTree = SOURCE_ROOT; };
@@ -127,7 +128,6 @@
71E861AB11FF75AC001C1826 /* PadController.m */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.objc; name = PadController.m; path = macsrc/PadController.m; sourceTree = "<group>"; };
71E861AC11FF75AC001C1826 /* PadView.h */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.h; name = PadView.h; path = macsrc/PadView.h; sourceTree = "<group>"; };
71E861AD11FF75AC001C1826 /* PadView.m */ = {isa = PBXFileReference; fileEncoding = 0; lastKnownFileType = sourcecode.c.objc; name = PadView.m; path = macsrc/PadView.m; sourceTree = "<group>"; };
- 71E861BB11FF75BA001C1826 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/NetPcsxrHIDInputPluginMain.nib; sourceTree = "<group>"; };
8D576316048677EA00EA77CD /* DFInput.psxplugin */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DFInput.psxplugin; sourceTree = BUILT_PRODUCTS_DIR; };
8D576317048677EA00EA77CD /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -177,7 +177,7 @@
isa = PBXGroup;
children = (
7136F51812011BB4001973D9 /* Credits.rtf */,
- 71E861BA11FF75BA001C1826 /* NetPcsxrHIDInputPluginMain.nib */,
+ 28586CC114651E730082B8EC /* NetPcsxrHIDInputPluginMain.xib */,
8D576317048677EA00EA77CD /* Info.plist */,
8D5B49A704867FD3000E48DA /* InfoPlist.strings */,
);
@@ -406,8 +406,11 @@
/* Begin PBXProject section */
089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0420;
+ };
buildConfigurationList = 71155B110FDFA2DE00EC0BC5 /* Build configuration list for PBXProject "DFInput" */;
- compatibilityVersion = "Xcode 2.4";
+ compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
@@ -431,8 +434,8 @@
buildActionMask = 2147483647;
files = (
8D5B49A804867FD3000E48DA /* InfoPlist.strings in Resources */,
- 71E861BC11FF75BA001C1826 /* NetPcsxrHIDInputPluginMain.nib in Resources */,
7136F51A12011BB4001973D9 /* Credits.rtf in Resources */,
+ 28586CC314651E730082B8EC /* NetPcsxrHIDInputPluginMain.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -479,20 +482,20 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
- 7136F51812011BB4001973D9 /* Credits.rtf */ = {
+ 28586CC114651E730082B8EC /* NetPcsxrHIDInputPluginMain.xib */ = {
isa = PBXVariantGroup;
children = (
- 7136F51912011BB4001973D9 /* English */,
+ 28586CC214651E730082B8EC /* English */,
);
- name = Credits.rtf;
+ name = NetPcsxrHIDInputPluginMain.xib;
sourceTree = "<group>";
};
- 71E861BA11FF75BA001C1826 /* NetPcsxrHIDInputPluginMain.nib */ = {
+ 7136F51812011BB4001973D9 /* Credits.rtf */ = {
isa = PBXVariantGroup;
children = (
- 71E861BB11FF75BA001C1826 /* English */,
+ 7136F51912011BB4001973D9 /* English */,
);
- name = NetPcsxrHIDInputPluginMain.nib;
+ name = Credits.rtf;
sourceTree = "<group>";
};
8D5B49A704867FD3000E48DA /* InfoPlist.strings */ = {
@@ -506,7 +509,7 @@
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
- 71155B0D0FDFA2DE00EC0BC5 /* Development */ = {
+ 71155B0D0FDFA2DE00EC0BC5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = NO;
@@ -543,15 +546,14 @@
);
WRAPPER_EXTENSION = psxplugin;
};
- name = Development;
+ name = Debug;
};
- 71155B0E0FDFA2DE00EC0BC5 /* Deployment */ = {
+ 71155B0E0FDFA2DE00EC0BC5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = YES;
DEBUGGING_SYMBOLS = NO;
GCC_DYNAMIC_NO_PIC = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_MODEL_TUNING = "";
GCC_OPTIMIZATION_LEVEL = s;
@@ -584,14 +586,19 @@
WRAPPER_EXTENSION = psxplugin;
ZERO_LINK = NO;
};
- name = Deployment;
+ name = Release;
};
- 71155B120FDFA2DE00EC0BC5 /* Development */ = {
+ 71155B120FDFA2DE00EC0BC5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ ARCHS = (
+ i386,
+ x86_64,
+ );
GCC_MODEL_TUNING = "";
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = "_MACOSX=1";
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = (
../../../libpcsxcore,
../..,
@@ -600,23 +607,26 @@
../../../../plugins/dfinput,
../Common/SDL/include,
);
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.6;
+ ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "";
- SDKROOT = "";
+ SDKROOT = macosx10.6;
STRIP_INSTALLED_PRODUCT = NO;
SYMROOT = ../../build;
+ WARNING_CFLAGS = "-Wall";
};
- name = Development;
+ name = Debug;
};
- 71155B130FDFA2DE00EC0BC5 /* Deployment */ = {
+ 71155B130FDFA2DE00EC0BC5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = (
i386,
- ppc,
+ x86_64,
);
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_PREPROCESSOR_DEFINITIONS = "_MACOSX=1";
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = (
../../../libpcsxcore,
../..,
@@ -625,12 +635,13 @@
../../../../plugins/dfinput,
../Common/SDL/include,
);
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CFLAGS = "";
- SDKROOT = "";
+ SDKROOT = macosx10.6;
SYMROOT = ../../build;
+ WARNING_CFLAGS = "-Wall";
};
- name = Deployment;
+ name = Release;
};
/* End XCBuildConfiguration section */
@@ -638,20 +649,20 @@
71155B0C0FDFA2DE00EC0BC5 /* Build configuration list for PBXNativeTarget "DFInput" */ = {
isa = XCConfigurationList;
buildConfigurations = (
- 71155B0D0FDFA2DE00EC0BC5 /* Development */,
- 71155B0E0FDFA2DE00EC0BC5 /* Deployment */,
+ 71155B0D0FDFA2DE00EC0BC5 /* Debug */,
+ 71155B0E0FDFA2DE00EC0BC5 /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Development;
+ defaultConfigurationName = Debug;
};
71155B110FDFA2DE00EC0BC5 /* Build configuration list for PBXProject "DFInput" */ = {
isa = XCConfigurationList;
buildConfigurations = (
- 71155B120FDFA2DE00EC0BC5 /* Development */,
- 71155B130FDFA2DE00EC0BC5 /* Deployment */,
+ 71155B120FDFA2DE00EC0BC5 /* Debug */,
+ 71155B130FDFA2DE00EC0BC5 /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Development;
+ defaultConfigurationName = Debug;
};
/* End XCConfigurationList section */
};
diff --git a/macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/classes.nib b/macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/classes.nib
index 3d81880b..e69de29b 100644
--- a/macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/classes.nib
+++ b/macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/classes.nib
@@ -1,33 +0,0 @@
-{
- IBClasses = (
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {
- CLASS = NetPcsxHIDInputPluginMappingCell;
- LANGUAGE = ObjC;
- SUPERCLASS = NSTextFieldCell;
- },
- {
- ACTIONS = {cancel = id; ok = id; setKey = id; };
- CLASS = NetPcsxrHIDInputPluginPadController;
- LANGUAGE = ObjC;
- OUTLETS = {
- controllerView = NetPcsxrHIDInputPluginPadView;
- controllerView1 = id;
- controllerView2 = id;
- };
- SUPERCLASS = NSWindowController;
- },
- {
- ACTIONS = {setDevice = id; setType = id; };
- CLASS = NetPcsxrHIDInputPluginPadView;
- LANGUAGE = ObjC;
- OUTLETS = {
- deviceMenu = NSPopUpButton;
- tableView = NSTableView;
- typeMenu = NSPopUpButton;
- };
- SUPERCLASS = NSView;
- }
- );
- IBVersion = 1;
-} \ No newline at end of file
diff --git a/macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/info.nib b/macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/info.nib
index 27f6df15..e69de29b 100644
--- a/macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/info.nib
+++ b/macosx/plugins/DFInput/English.lproj/NetPcsxrHIDInputPluginMain.nib/info.nib
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>IBDocumentLocation</key>
- <string>54 67 576 240 0 0 1024 746 </string>
- <key>IBEditorPositions</key>
- <dict>
- <key>16</key>
- <string>293 323 437 378 0 0 1024 746 </string>
- </dict>
- <key>IBFramework Version</key>
- <string>446.1</string>
- <key>IBOpenObjects</key>
- <array>
- <integer>16</integer>
- </array>
- <key>IBSystem Version</key>
- <string>8P2137</string>
-</dict>
-</plist>
diff --git a/macosx/plugins/DFInput/macsrc/ControllerList.h b/macosx/plugins/DFInput/macsrc/ControllerList.h
index af0d0407..671c51ff 100644
--- a/macosx/plugins/DFInput/macsrc/ControllerList.h
+++ b/macosx/plugins/DFInput/macsrc/ControllerList.h
@@ -21,13 +21,12 @@
#define ControllerList NetPcsxrHIDInputPluginControllerList
-#import <Foundation/Foundation.h>
-#import <AppKit/NSTableView.h>
+#import <Cocoa/Cocoa.h>
#include "cfg.h"
@class KeyConfig;
-@interface ControllerList : NSObject {
+@interface ControllerList : NSObject <NSTableViewDataSource> {
}
- (id)initWithConfig;
diff --git a/macosx/plugins/DFInput/macsrc/MappingCell.m b/macosx/plugins/DFInput/macsrc/MappingCell.m
index 2a382436..48e5dfe5 100644
--- a/macosx/plugins/DFInput/macsrc/MappingCell.m
+++ b/macosx/plugins/DFInput/macsrc/MappingCell.m
@@ -31,7 +31,7 @@
return self;
}
-- (void)selectWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject start:(long)selStart length:(long)selLength
+- (void)selectWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject start:(NSInteger)selStart length:(NSInteger)selLength
{
[super selectWithFrame:aRect inView:controlView editor:textObj delegate:anObject start:selStart length:selLength];
@@ -74,7 +74,7 @@
[tableView deselectAll:self];
return;
}
- [tableView selectRow:nextRow byExtendingSelection:NO];
+ [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:nextRow] byExtendingSelection:NO];
/* discard any events we have received while waiting for the button press */
endEvent = [NSEvent otherEventWithType:NSApplicationDefined location:where
diff --git a/macosx/plugins/DFInput/macsrc/cfg.c b/macosx/plugins/DFInput/macsrc/cfg.c
index f251996d..3e0ee1d5 100644
--- a/macosx/plugins/DFInput/macsrc/cfg.c
+++ b/macosx/plugins/DFInput/macsrc/cfg.c
@@ -672,7 +672,7 @@ int ReadDKeyEvent(int padnum, int key) {
}
// check mouse events
- if (Button()) {
+ if (GetCurrentButtonState()) {
changed = 2;
goto end;
}
@@ -755,7 +755,7 @@ int ReadAnalogEvent(int padnum, int analognum, int analogdir) {
}
// check mouse events
- if (Button()) {
+ if (GetCurrentButtonState()) {
changed = 2;
goto end;
}