mouse support, solved some funcs clash on linux, started sprite editor

This commit is contained in:
2021-09-25 20:26:37 +02:00
parent 9dbd952359
commit 794f8fc436
7 changed files with 46 additions and 77 deletions

9
mini.h
View File

@@ -181,17 +181,24 @@ void map(uint8_t celx, uint8_t cely, int sx, int sy, uint8_t celw, uint8_t celh,
bool btn(uint8_t i);
bool btnp(uint8_t i);
int mouseX();
int mouseY();
bool mouseButton(uint8_t i);
float time();
//float abs(float x);
float ceil(float x);
float flr(float x);
float sgn(float x);
#ifndef __LINUX__
float ceil(float x);
float sin(float x);
float cos(float x);
float atan2(float dx, float dy);
float sqrt(float x);
#endif
float max(float x, float y);
float mid(float x, float y, float z);