pcsxr-1.9.92
[pcsx_rearmed.git] / macosx / plugins / DFInput / macsrc / ControllerList.h
1 /*
2  * Copyright (c) 2010, Wei Mingzhi <whistler@openoffice.org>.
3  * All Rights Reserved.
4  *
5  * Based on HIDInput by Gil Pedersen.
6  * Copyright (c) 2004, Gil Pedersen.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, see <http://www.gnu.org/licenses>.
20  */
21
22 #define ControllerList NetPcsxHIDInputPluginControllerList
23
24 #import <Foundation/Foundation.h>
25 #import <AppKit/NSTableView.h>
26 #include "cfg.h"
27
28 @class KeyConfig;
29
30 @interface ControllerList : NSObject {
31 }
32
33 - (id)initWithConfig;
34
35 + (void)setCurrentController:(int)which;
36 + (int)currentController;
37 + (int)getButtonOfRow:(int)row;
38 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
39 - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
40 - (void)deleteRow:(int)which;
41
42 @end