mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
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:
parent
3441be422e
commit
6d44d060c4
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue