-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatform.h
75 lines (60 loc) · 2.09 KB
/
platform.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef PLATFORM_H_
#define PLATFORM_H_
#include "config.h"
#include <stdio.h>
/* This include file defines prototypes for platform-specific functions. */
int PLATFORM_Initialise(int *argc, char *argv[]);
int PLATFORM_Exit(int run_monitor);
int PLATFORM_Keyboard(void);
void PLATFORM_DisplayScreen(void);
int PLATFORM_PORT(int num);
int PLATFORM_TRIG(int num);
#ifdef SUPPORTS_PLATFORM_CONFIGINIT
/* This function sets the configuration parameters to default values */
void PLATFORM_ConfigInit(void);
#endif
#ifdef SUPPORTS_PLATFORM_CONFIGURE
/* This procedure processes lines not recognized by RtConfigLoad. */
int PLATFORM_Configure(char *option, char *parameters);
#endif
#ifdef SUPPORTS_PLATFORM_CONFIGSAVE
/* This function saves additional config lines */
void PLATFORM_ConfigSave(FILE *fp);
#endif
#ifdef SUPPORTS_PLATFORM_PALETTEUPDATE
/* This function updates the palette */
/* If the platform does a conversion of colortable when it initialises
* and the user changes colortable (such as changing from PAL to NTSC)
* then this function should update the platform palette */
void PLATFORM_PaletteUpdate(void);
#endif
#ifdef SUPPORTS_PLATFORM_SLEEP
/* This function is for those ports that need their own version of sleep */
void PLATFORM_Sleep(double s);
#endif
#ifdef SDL
/* used in UI to show how the keyboard joystick is mapped */
extern int PLATFORM_kbd_joy_0_enabled;
extern int PLATFORM_kbd_joy_1_enabled;
int PLATFORM_GetRawKey(void);
#endif
#ifdef XEP80_EMULATION
/* Switch between the Atari and XEP80 screen */
void PLATFORM_SwitchXep80(void);
/* TRUE if the XEP80 screen is visible */
extern int PLATFORM_xep80;
#endif
#ifdef NTSC_FILTER
enum PLATFORM_filter_t {
PLATFORM_FILTER_NONE,
PLATFORM_FILTER_NTSC
};
/* Represents whether the NTSC filter is turned on. Don't set this value
directly. */
extern enum PLATFORM_filter_t PLATFORM_filter;
/* This function turns the NTSC filter on or off. Changing the
PLATFORM_filter variable directly is not allowed; use this function
instead. */
void PLATFORM_SetFilter(const enum PLATFORM_filter_t filter);
#endif /* NTSC_FILTER */
#endif /* PLATFORM_H_ */