summaryrefslogtreecommitdiff
path: root/macosx/plugins/HIDInput/src/ControllerList.h
blob: b6b4264ff5e745602a5ccaaba464ae0bc0d8de14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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