summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFInput
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-12 20:07:20 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-12 20:07:20 +0000
commit98f9382fb8307e539091454392ca658648f722b8 (patch)
tree63922f6d138eae366b2b57546cfc98998b414bca /macosx/plugins/DFInput
parenta3c75d56e6bb3e77fb2bef70e1a0175a5e7ab966 (diff)
downloadpcsxr-98f9382fb8307e539091454392ca658648f722b8.tar.gz
Big Mac Commit!
Updating plug-ins to use Release instead of Debug for command line building. Update to use 64-bit safe datatypes (NSInteger where needed). Getting rid of no longer used variables in the Xcode projects. Making a Localizable.strings file. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72225 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFInput')
-rw-r--r--macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj15
-rw-r--r--macosx/plugins/DFInput/macsrc/ControllerList.h6
-rw-r--r--macosx/plugins/DFInput/macsrc/ControllerList.m6
-rw-r--r--macosx/plugins/DFInput/macsrc/PadView.h2
-rw-r--r--macosx/plugins/DFInput/macsrc/PadView.m2
5 files changed, 11 insertions, 20 deletions
diff --git a/macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj b/macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj
index fc68b0a0..f44b3e16 100644
--- a/macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj
+++ b/macosx/plugins/DFInput/DFInput.xcodeproj/project.pbxproj
@@ -591,11 +591,7 @@
71155B120FDFA2DE00EC0BC5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = (
- i386,
- x86_64,
- );
- GCC_MODEL_TUNING = "";
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = "_MACOSX=1";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
@@ -620,10 +616,7 @@
71155B130FDFA2DE00EC0BC5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = (
- i386,
- x86_64,
- );
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_PREPROCESSOR_DEFINITIONS = "_MACOSX=1";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
@@ -653,7 +646,7 @@
71155B0E0FDFA2DE00EC0BC5 /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
+ defaultConfigurationName = Release;
};
71155B110FDFA2DE00EC0BC5 /* Build configuration list for PBXProject "DFInput" */ = {
isa = XCConfigurationList;
@@ -662,7 +655,7 @@
71155B130FDFA2DE00EC0BC5 /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
+ defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
diff --git a/macosx/plugins/DFInput/macsrc/ControllerList.h b/macosx/plugins/DFInput/macsrc/ControllerList.h
index 671c51ff..91320b28 100644
--- a/macosx/plugins/DFInput/macsrc/ControllerList.h
+++ b/macosx/plugins/DFInput/macsrc/ControllerList.h
@@ -34,8 +34,8 @@
+ (void)setCurrentController:(int)which;
+ (int)currentController;
+ (int)getButtonOfRow:(int)row;
-- (int)numberOfRowsInTableView:(NSTableView *)aTableView;
-- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
-- (void)deleteRow:(int)which;
+- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
+- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex;
+- (void)deleteRow:(NSInteger)which;
@end
diff --git a/macosx/plugins/DFInput/macsrc/ControllerList.m b/macosx/plugins/DFInput/macsrc/ControllerList.m
index 578898c3..db25d2f2 100644
--- a/macosx/plugins/DFInput/macsrc/ControllerList.m
+++ b/macosx/plugins/DFInput/macsrc/ControllerList.m
@@ -50,7 +50,7 @@ static int currentController;
}
/* NSDataSource */
-- (int)numberOfRowsInTableView:(NSTableView *)aTableView
+- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
{
return DKEY_TOTAL + (g.cfg.PadDef[currentController].Type == PSE_PAD_TYPE_ANALOGPAD ? 8 : -3);
}
@@ -109,7 +109,7 @@ static const int DPad[DKEY_TOTAL] = {
}
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn
- row:(int)rowIndex
+ row:(NSInteger)rowIndex
{
char buf[256];
@@ -128,7 +128,7 @@ static const int DPad[DKEY_TOTAL] = {
}
}
-- (void)deleteRow:(int)which
+- (void)deleteRow:(NSInteger)which
{
if (which < DKEY_TOTAL) {
g.cfg.PadDef[currentController].KeyDef[DPad[which]].Key = 0;
diff --git a/macosx/plugins/DFInput/macsrc/PadView.h b/macosx/plugins/DFInput/macsrc/PadView.h
index 1d8d4a09..6e893b1c 100644
--- a/macosx/plugins/DFInput/macsrc/PadView.h
+++ b/macosx/plugins/DFInput/macsrc/PadView.h
@@ -24,8 +24,6 @@
#import <Cocoa/Cocoa.h>
#import "ControllerList.h"
-@class ControllerList;
-
@interface PadView : NSView
{
IBOutlet NSTableView *tableView;
diff --git a/macosx/plugins/DFInput/macsrc/PadView.m b/macosx/plugins/DFInput/macsrc/PadView.m
index b0ed273b..e6828e10 100644
--- a/macosx/plugins/DFInput/macsrc/PadView.m
+++ b/macosx/plugins/DFInput/macsrc/PadView.m
@@ -89,7 +89,7 @@
/* handles key events on the pad list */
- (void)keyDown:(NSEvent *)theEvent
{
- int key = [theEvent keyCode];
+ NSEventType key = [theEvent keyCode];
if ([[theEvent window] firstResponder] == tableView) {
if (key == 51 || key == 117) {