From 5408345d8b1cde19a19ddf324d3439ead6e80709 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sat, 24 Oct 2009 03:15:42 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@32699 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/HIDInput/src/ControllerList.h | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 macosx/plugins/HIDInput/src/ControllerList.h (limited to 'macosx/plugins/HIDInput/src/ControllerList.h') 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 +#import +#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 -- cgit v1.2.3