File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1458,7 +1458,7 @@ begin
1458
1458
if Game.Player.Dead then
1459
1459
Command_Queue.Size := 0 ;
1460
1460
else
1461
- if Boolean(Is_Key_Down(KEY_LEFT_SHIFT)) and then Game.Turn_Animation <= 0.0 then
1461
+ if ( Boolean(Is_Key_Down(KEY_LEFT_SHIFT)) or else Boolean(Is_Key_Down(KEY_RIGHT_SHIFT) )) and then Game.Turn_Animation <= 0.0 then
1462
1462
if Is_Key_Down(KEY_A) or else Is_Key_Down(KEY_LEFT) then
1463
1463
Command_Queue.Size := 0 ;
1464
1464
Command_Enqueue(Command_Queue, (Kind => Command_Step, Dir => Left));
@@ -1493,7 +1493,7 @@ begin
1493
1493
Command_Enqueue(Command_Queue, (Kind => Command_Plant));
1494
1494
end if ;
1495
1495
end if ;
1496
- if Is_Key_Down(KEY_LEFT_SHIFT) then
1496
+ if Boolean( Is_Key_Down(KEY_LEFT_SHIFT)) or else Boolean(Is_Key_Down(KEY_RIGHT_SHIFT) ) then
1497
1497
TURN_DURATION_SECS := BASE_TURN_DURATION_SECS * 0.8 ;
1498
1498
else
1499
1499
if Command_Queue.Size /= 0 then
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ package Raylib is
79
79
KEY_ESCAPE: constant int := 256 ;
80
80
KEY_ENTER: constant Int := 257 ;
81
81
KEY_LEFT_SHIFT: constant Int := 340 ;
82
+ KEY_RIGHT_SHIFT: constant Int := 344 ;
82
83
83
84
function Is_Key_Pressed (key: int) return C_bool
84
85
with
You can’t perform that action at this time.
0 commit comments