libretro: satisfy vita's dynarec needs in a cleaner way
[picodrive.git] / platform / gizmondo / giz.h
... / ...
CommitLineData
1extern void *giz_screen;
2
3void giz_init();
4void giz_deinit(void);
5void lprintf(const char *fmt, ...);
6
7void *directfb_lock(int unused);
8void directfb_unlock(void);
9void directfb_flip(void);
10
11#if 1
12#define fb_lock Framework2D_LockBuffer
13#define fb_unlock Framework2D_UnlockBuffer
14#define fb_flip Framework2D_Flip
15#else
16#define fb_lock directfb_lock
17#define fb_unlock directfb_unlock
18#define fb_flip directfb_flip
19#endif
20
21#ifndef _FRAMEWORK_H
22// bah, some copy-pasta
23enum FRAMEWORK_BUTTONTYPES
24{
25 FRAMEWORK_BUTTON_DPAD_LEFT = 0,
26 FRAMEWORK_BUTTON_DPAD_RIGHT,
27 FRAMEWORK_BUTTON_DPAD_UP,
28 FRAMEWORK_BUTTON_DPAD_DOWN,
29 FRAMEWORK_BUTTON_STOP,
30 FRAMEWORK_BUTTON_PLAY,
31 FRAMEWORK_BUTTON_FORWARD,
32 FRAMEWORK_BUTTON_REWIND,
33 FRAMEWORK_BUTTON_LEFT_SHOULDER,
34 FRAMEWORK_BUTTON_RIGHT_SHOULDER,
35 FRAMEWORK_BUTTON_HOME,
36 FRAMEWORK_BUTTON_VOLUME,
37 FRAMEWORK_BUTTON_BRIGHTNESS,
38 FRAMEWORK_BUTTON_ALARM,
39 FRAMEWORK_BUTTON_POWER,
40
41 FRAMEWORK_BUTTON_COUNT
42
43};
44#endif
45
46#define PBTN_LEFT (1 << FRAMEWORK_BUTTON_DPAD_LEFT)
47#define PBTN_RIGHT (1 << FRAMEWORK_BUTTON_DPAD_RIGHT)
48#define PBTN_UP (1 << FRAMEWORK_BUTTON_DPAD_UP)
49#define PBTN_DOWN (1 << FRAMEWORK_BUTTON_DPAD_DOWN)
50#define PBTN_STOP (1 << FRAMEWORK_BUTTON_STOP)
51#define PBTN_PLAY (1 << FRAMEWORK_BUTTON_PLAY)
52#define PBTN_FWD (1 << FRAMEWORK_BUTTON_FORWARD)
53#define PBTN_REW (1 << FRAMEWORK_BUTTON_REWIND)
54#define PBTN_L (1 << FRAMEWORK_BUTTON_LEFT_SHOULDER)
55#define PBTN_R (1 << FRAMEWORK_BUTTON_RIGHT_SHOULDER)
56
57#define PBTN_HOME (1 << FRAMEWORK_BUTTON_HOME)
58#define PBTN_VOLUME (1 << FRAMEWORK_BUTTON_VOLUME)
59#define PBTN_BRIGHTNESS (1 << FRAMEWORK_BUTTON_BRIGHTNESS)
60#define PBTN_ALARM (1 << FRAMEWORK_BUTTON_ALARM)
61#define PBTN_POWER (1 << FRAMEWORK_BUTTON_POWER)
62