feat(editor): bindings per E (entity picker), H (mà), Supr (borrar)

This commit is contained in:
JailDesigner committed 2026-05-02 10:53:50 +02:00
1 parent fe916d263f
commit ca03a1307e
2 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ void Editor::update(int /*delta_ms*/, Tilemap& tilemap) {
// (GlobalInputs) les vegi. ESC només es consumeix si el picker està
// obert — fora d'ell segueix arribant a GlobalInputs per la seva
// acció de confirmar-eixida.
const SDL_Scancode PICKER_SC = KeyConfig::get().scancode("editor_picker");
const SDL_Scancode PICKER_SC = KeyConfig::get().scancode("editor_tile_picker");
for (auto it = EventBuffer::events.begin(); it != EventBuffer::events.end();) {
bool consumed = false;
if (it->type == SDL_EVENT_KEY_DOWN) {