Updated the number at the top of the file.

This commit is contained in:
Barra Ó Catháin 2023-03-08 23:41:42 +00:00
parent 42de9f0616
commit fa3d3ca843
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// SDL Experiment 18, Barra Ó Catháin.
// SDL Experiment 19, Barra Ó Catháin.
// ===================================
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>

View File

@ -1,4 +1,4 @@
// SDL Experiment 18, Barra Ó Catháin.
// SDL Experiment 19, Barra Ó Catháin.
// ===================================
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
@ -130,6 +130,12 @@ static inline void takeNetworkInput(playerController * controller, int descripto
}
static inline void getPlayerInput(playerController * controller, int playerNumber)
{
SDL_PumpEvents();
int keyboardStateLength = 0;
uint8_t * keyboardState = SDL_GetKeyboardState(&keyboardStateLength);
}
void doShipInput(playerController * controller, ship * ship, xyVector starPosition, double deltaTime)
{
if(controller->number == ship->number)