- [NEW] draw::setZoom() i getZoom()

- [NEW] Ara amb F1 i F2 se pot fer zoom del contingut de la finestra
- [NEW] Ja es pot editar els camps de text (pero encara no es guarda a arxiu)
This commit is contained in:
2025-11-19 22:46:44 +01:00
parent 546ab9aa55
commit 19441c5289
6 changed files with 92 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
#include "input.h"
#include <SDL3/SDL.h>
#include "draw.h"
namespace input
{
@@ -78,7 +79,7 @@ namespace input
{
float x;
SDL_GetMouseState(&x, NULL);
return x;
return x*draw::getZoom();
}
// Torna la posició Y actual del ratolí
@@ -86,7 +87,7 @@ namespace input
{
float y;
SDL_GetMouseState(NULL, &y);
return y;
return y*draw::getZoom();
}
// Determina si el botó del ratolí especificat està sent polsada ara mateix