- [NEW] Es pot navegar entre habitacions pulsant el nombres de les vores

- [FIX] usar mouseClk() en el treeview
- [FIX] Al crear nova habitació s¡obri la porta contraria en l'habitació des de la que se venia.
This commit is contained in:
2024-07-30 09:18:13 +02:00
parent 0a24e2b3fe
commit 8725532586
14 changed files with 131 additions and 48 deletions

View File

@@ -9,12 +9,10 @@ namespace input
static uint8_t keydown = 0;
static uint8_t btnClicked = 0;
static int wheel = 0;
static int screen_zoom = 1;
void init(const int zoom)
void init()
{
keys = SDL_GetKeyboardState(NULL);
screen_zoom = zoom;
}
// Determina si la tecla especificada està sent polsada ara mateix
@@ -76,7 +74,7 @@ namespace input
{
int x;
SDL_GetMouseState(&x, NULL);
return x/screen_zoom;
return x/draw::getZoom();
}
// Torna la posició Y actual del ratolí
@@ -84,7 +82,7 @@ namespace input
{
int y;
SDL_GetMouseState(NULL, &y);
return y/screen_zoom;
return y/draw::getZoom();
}
// Determina si el botó del ratolí especificat està sent polsada ara mateix