Nimbin2git.christianimmanuel.de / Games / strichmaennchen / input.h

strichmaennchen git · main

git clone https://git.christianimmanuel.de/games/strichmaennchen.gitwget https://git.christianimmanuel.de/games/strichmaennchen/archive/strichmaennchen.tar.gz
input.h 336 B · 19 lines raw
#ifndef INPUT_H
#define INPUT_H

typedef struct {
    char running;
	char move_forward;
	char move_sideway;
	char rotate_object_forward;
	char rotate_object_sideway;
	float yaw_delta;
	float pitch_delta;
    char jump;
    char sprint;
} Userinput;

void Input_reset(Userinput* input);
void Input_process(Userinput* userinput);

#endif