mouse button rotation + minor fixes
This commit is contained in:
@ -25,14 +25,16 @@ update_f(struct CRotation* self)
|
||||
if
|
||||
(
|
||||
keyboard_held(&game.keyboard, KEYBOARD_LEFT) ||
|
||||
keyboard_held(&game.keyboard, KEYBOARD_A)
|
||||
keyboard_held(&game.keyboard, KEYBOARD_A) ||
|
||||
mouse_held(&game.mouse, MOUSE_LEFT)
|
||||
)
|
||||
self->velocity += self->speed;
|
||||
|
||||
if
|
||||
(
|
||||
keyboard_held(&game.keyboard, KEYBOARD_RIGHT) ||
|
||||
keyboard_held(&game.keyboard, KEYBOARD_D)
|
||||
keyboard_held(&game.keyboard, KEYBOARD_D) ||
|
||||
mouse_held(&game.mouse, MOUSE_RIGHT)
|
||||
)
|
||||
self->velocity -= self->speed;
|
||||
|
||||
|
@ -428,10 +428,7 @@ void
|
||||
play_update_f(struct Play* self)
|
||||
{
|
||||
if (keyboard_press(&game.keyboard, KEYBOARD_P))
|
||||
{
|
||||
game.isPaused = !game.isPaused;
|
||||
printf("???\n");
|
||||
}
|
||||
|
||||
if (game.isPaused)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user