mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-21 14:58:49 -05:00
Add weapon switch keys
This commit is contained in:
parent
5cacc3b438
commit
84c40d6351
8
main.c
8
main.c
@ -1145,9 +1145,9 @@ void SFG_gameStep()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (SFG_keyJustPressed(SFG_KEY_LEFT))
|
||||
if (SFG_keyJustPressed(SFG_KEY_LEFT) | SFG_keyJustPressed(SFG_KEY_A))
|
||||
SFG_playerRotateWeapon(0);
|
||||
else if (SFG_keyJustPressed(SFG_KEY_RIGHT))
|
||||
else if (SFG_keyJustPressed(SFG_KEY_RIGHT) | SFG_keyJustPressed(SFG_KEY_B))
|
||||
SFG_playerRotateWeapon(1);
|
||||
}
|
||||
}
|
||||
@ -1168,9 +1168,9 @@ void SFG_gameStep()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (SFG_keyJustPressed(SFG_KEY_LEFT))
|
||||
if (SFG_keyJustPressed(SFG_KEY_LEFT) | SFG_keyJustPressed(SFG_KEY_A))
|
||||
SFG_playerRotateWeapon(0);
|
||||
else if (SFG_keyJustPressed(SFG_KEY_RIGHT))
|
||||
else if (SFG_keyJustPressed(SFG_KEY_RIGHT) | SFG_keyJustPressed(SFG_KEY_B))
|
||||
SFG_playerRotateWeapon(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user