summaryrefslogtreecommitdiff
path: root/macosx/plugins/HIDInput/src/ControllerList.h
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-24 03:15:42 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-24 03:15:42 +0000
commit5408345d8b1cde19a19ddf324d3439ead6e80709 (patch)
treefd7934308384396b4ad92b547e8804a696c480e8 /macosx/plugins/HIDInput/src/ControllerList.h
parentf2f1033882e0643f05f3027f2c812f425f67a879 (diff)
downloadpcsxr-5408345d8b1cde19a19ddf324d3439ead6e80709.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@32699 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/HIDInput/src/ControllerList.h')
-rw-r--r--macosx/plugins/HIDInput/src/ControllerList.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/macosx/plugins/HIDInput/src/ControllerList.h b/macosx/plugins/HIDInput/src/ControllerList.h
new file mode 100644
index 00000000..b6b4264f
--- /dev/null
+++ b/macosx/plugins/HIDInput/src/ControllerList.h
@@ -0,0 +1,56 @@
+/***************************************************************************
+ ControllerList.h
+ HIDInput
+
+ Created by Gil Pedersen on Mon May 03 2004.
+ Copyright (c) 2004 Gil Pedersen.
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. See also the license.txt file for *
+ * additional informations. *
+ * *
+ ***************************************************************************/
+
+#define ControllerList NetPcsxHIDInputPluginControllerList
+
+#import <Foundation/Foundation.h>
+#import <AppKit/NSTableView.h>
+#import "KeyConfig.h"
+
+@class KeyConfig;
+
+@interface ControllerList : NSObject {
+ int currentController;
+ KeyConfig *config;
+ NSArray *plist;
+ //NSArray *keys;
+ NSArray *typeList;
+ //NSString *type;
+ //NSString *currentSet;
+ //NSMutableDictionary *keyValues;
+}
+
+- (id)initWithConfig:(KeyConfig *)keyconfig;
+
+- (NSArray *)controllerTypes;
+
+- (NSDictionary *)dictForType:(NSString *)type;
+- (NSArray *)elementsForType:(NSString *)type;
+- (NSString *)elementNameAtIndex:(int)index type:(NSString *)type;
+- (int)elementCountForType:(NSString *)type;
+- (int)controllerTypeIdForType:(NSString *)type;
+- (int)buttonIdAtIndex:(int)index type:(NSString *)type;
+- (int)axisIdAtIndex:(int)index type:(NSString *)type;
+- (int)axisDirectionAtIndex:(int)index type:(NSString *)type;
+
+- (void)setCurrentController:(int)which;
+- (int)currentController;
+- (int)numberOfRowsInTableView:(NSTableView *)aTableView;
+- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
+
+@end