Files
snejk/src/game/simulation/input.h

20 lines
377 B
C

#ifndef SIM_GAME_INPUT_H
#define SIM_GAME_INPUT_H
typedef struct {
bool right;
bool left;
} Simulation_Game_Input;
static inline bool simulation_input_equal(Simulation_Game_Input a, Simulation_Game_Input b) {
if(a.right != b.right) {
return false;
}
if(a.left != b.left) {
return false;
}
return true;
}
#endif