-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathN64AnalyzerSettings.h
executable file
·56 lines (46 loc) · 1.04 KB
/
N64AnalyzerSettings.h
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
#ifndef N64_ANALYZER_SETTINGS
#define N64_ANALYZER_SETTINGS
#include <AnalyzerSettings.h>
#include <AnalyzerTypes.h>
// microsecond bitrate
#define bitrate 1000000
#define ZERO_BIT 0
#define ONE_BIT 1
#define CONSOLE_STOP_BIT 2
#define CONTROLLER_STOP_BIT 3
#define NO_BIT -1
typedef struct {
bool left;
bool right;
bool up;
bool down;
} digital;
typedef struct {
char x;
char y;
} stick;
typedef struct {
bool a;
bool b;
bool z;
bool start;
bool l;
bool r;
digital d;
digital c;
stick s;
} N64Controller;
class N64AnalyzerSettings : public AnalyzerSettings
{
public:
N64AnalyzerSettings();
virtual ~N64AnalyzerSettings();
virtual bool SetSettingsFromInterfaces();
void UpdateInterfacesFromSettings();
virtual void LoadSettings( const char* settings );
virtual const char* SaveSettings();
Channel mInputChannel;
protected:
std::auto_ptr< AnalyzerSettingInterfaceChannel > mInputChannelInterface;
};
#endif //N64_ANALYZER_SETTINGS