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/KeyConfig.h | 60 +++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 macosx/plugins/HIDInput/src/KeyConfig.h (limited to 'macosx/plugins/HIDInput/src/KeyConfig.h') diff --git a/macosx/plugins/HIDInput/src/KeyConfig.h b/macosx/plugins/HIDInput/src/KeyConfig.h new file mode 100644 index 00000000..7c29ce38 --- /dev/null +++ b/macosx/plugins/HIDInput/src/KeyConfig.h @@ -0,0 +1,60 @@ +/*************************************************************************** + KeyConfig.h + HIDInput + + Created by Gil Pedersen on Sat May 29 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 KeyConfig NetPcsxHIDInputPluginKeyConfig + +#import +#include +#include "HID_Utilities.h" +#import "ControllerList.h" + +@class ControllerList; + +@interface KeyConfig : NSObject { + ControllerList *list; + NSDictionary *keyValues; +} + +- (id)init; +- (void)dealloc; + ++ (KeyConfig *)current; + ++ (NSString *)mappingIdForElement:(pRecElement)element onDevice:(pRecDevice)device reverse:(BOOL)reverse; ++ (BOOL)reverseMappingForId:(NSString *)mappingId outElement:(pRecElement *)element outDevice:(pRecDevice *)device; ++ (NSString *)nameFromMapping:(NSString *)mappingId; ++ (NSString *)deviceNameFromMapping:(NSString *)mappingId; + +- (ControllerList *)controllerList; +- (void)setCurrentSet:(NSString *)name; +- (NSString *)currentSet; +- (NSDictionary *)players; +- (NSDictionary *)typesForPlayer:(int)player; +- (void)setCurrentType:(NSString *)type player:(int)player; +- (NSString *)currentTypeForPlayer:(int)player; +- (NSDictionary *)currentKeysForPlayer:(int)player; + +- (void)addMapping:(NSString *)mappingId forElement:(NSString *)name player:(int)player; +- (void)removeMappingsForElement:(NSString *)name player:(int)player; +- (NSArray *)currentMappingsForElement:(NSString *)name player:(int)player; +- (NSString *)mappingNamesForElement:(NSString *)name player:(int)player; + +- (void)updateKeys; +- (void)releaseKeys; + +@end -- cgit v1.2.3