-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathmainmenu.h
37 lines (31 loc) · 1.31 KB
/
mainmenu.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
#ifndef MAINMENU_H
#define MAINMENU_H
#include "game.h"
#if !defined EDITOR && !defined SERVER
int LoadMainMenuSprites(const char* base_path);
void FreeMainMenuSprites();
void MainMenu_Show();
void MainMenu_Render(uint64_t _stamp, AnsiCell* ptr, int width, int height);
void MainMenu_OnSize(int w, int h, int fw, int fh);
void MainMenu_OnKeyb(GAME_KEYB keyb, int key);
void MainMenu_OnMouse(GAME_MOUSE mouse, int x, int y);
void MainMenu_OnTouch(GAME_TOUCH touch, int id, int x, int y);
void MainMenu_OnFocus(bool set);
void MainMenu_OnPadMount(bool connect);
void MainMenu_OnPadButton(int b, bool down);
void MainMenu_OnPadAxis(int a, int16_t pos);
#else
inline void MainMenu_Show() {}
inline int LoadMainMenuSprites(const char* base_path) { return 0; }
inline void FreeMainMenuSprites() {}
inline void MainMenu_Render(uint64_t _stamp, AnsiCell* ptr, int width, int height){}
inline void MainMenu_OnSize(int w, int h, int fw, int fh){}
inline void MainMenu_OnKeyb(GAME_KEYB keyb, int key){}
inline void MainMenu_OnMouse(GAME_MOUSE mouse, int x, int y){}
inline void MainMenu_OnTouch(GAME_TOUCH touch, int id, int x, int y){}
inline void MainMenu_OnFocus(bool set){}
inline void MainMenu_OnPadMount(bool connect){}
inline void MainMenu_OnPadButton(int b, bool down){}
inline void MainMenu_OnPadAxis(int a, int16_t pos){}
#endif
#endif