diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-24 03:15:42 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-24 03:15:42 +0000 |
| commit | 5408345d8b1cde19a19ddf324d3439ead6e80709 (patch) | |
| tree | fd7934308384396b4ad92b547e8804a696c480e8 /macosx/plugins/HIDInput/src/KeyConfig.h | |
| parent | f2f1033882e0643f05f3027f2c812f425f67a879 (diff) | |
| download | pcsxr-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/KeyConfig.h')
| -rw-r--r-- | macosx/plugins/HIDInput/src/KeyConfig.h | 60 |
1 files changed, 60 insertions, 0 deletions
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 <Carbon/Carbon.h> +#include <IOKit/hid/IOHIDUsageTables.h> +#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 |
