- [NEW] configuration file working.
- [NEW] zoom(), fullscreen(), cursor(), getconf(), setconf(). - [CHG] now zoom and fullscreen are controlled by the game, not by mini. - [FIX] quit() now actually quits. - [NEW] btnp() without parameters returns key pressed. - [NEW] zoom, fullscreen and cursor are saved to config automatically.
This commit is contained in:
11
mini.h
11
mini.h
@@ -200,6 +200,7 @@ void mset(int celx, int cely, uint8_t snum);
|
||||
void map(int celx, int cely, int sx, int sy, uint8_t celw, uint8_t celh, uint8_t layer=0);
|
||||
|
||||
bool btn(uint8_t i);
|
||||
int wbtnp();
|
||||
bool btnp(uint8_t i);
|
||||
bool anykey();
|
||||
|
||||
@@ -267,4 +268,14 @@ void freesound(int soundfile);
|
||||
int playsound(int soundfile, const int volume=-1);
|
||||
void stopsound(int soundchannel);
|
||||
|
||||
int getzoom();
|
||||
void setzoom(const int value);
|
||||
bool getfullscreen();
|
||||
void setfullscreen(const bool value);
|
||||
bool getcursor();
|
||||
void setcursor(const bool value);
|
||||
|
||||
const char* getconfig(const char* key);
|
||||
void setconfig(const char* key, const char* value);
|
||||
|
||||
void exit();
|
||||
|
||||
Reference in New Issue
Block a user