Implement in-game navigation with keyboard

Implements a start to the keyboard navigation with the direction arrows
and the space key for card selection.
Some binds are still needed, but navigating the board is now possible.
The feature includes tests for the implemented feature.

Closes #5043

Co-authored-by: Manuel Ramos Monge <manuel.monge@tecnico.ulisboa.pt>
This commit is contained in:
Vasco Guerreiro Vintém Morais 2026-06-02 17:09:39 +01:00
parent 3441be422e
commit 6d44d060c4
2 changed files with 8 additions and 1 deletions

View file

@ -68,6 +68,13 @@ public:
{
targetLocked = _targetLocked;
}
void delArrow();
static void sendCreateArrowCommand(PlayerLogic *player,
CardItem *startCard,
ArrowTarget *targetItem,
const QColor &color,
int deleteInPhase = 0);
};
class ArrowDragItem : public ArrowItem

View file

@ -11,9 +11,9 @@
#include "../phase.h"
#include "../player/player_actions.h"
#include "../player/player_logic.h"
#include "../zones/view_zone_logic.h"
#include "../zones/table_zone.h"
#include "../zones/view_zone.h"
#include "../zones/view_zone_logic.h"
#include "arrow_item.h"
#include "card_drag_item.h"