temp update to now close sdl windows on exit
This commit is contained in:
parent
6d64a17b1d
commit
a8c8324fac
3 changed files with 11 additions and 5 deletions
|
|
@ -24,11 +24,16 @@ void ARC_Input_Destroy(ARC_Input *input){
|
|||
free(input);
|
||||
}
|
||||
|
||||
void ARC_Input_Update(ARC_Input *input){
|
||||
ARC_Bool ARC_Input_Update(ARC_Input *input){
|
||||
SDL_PollEvent(input->event);
|
||||
if(input->event->type == SDL_QUIT){
|
||||
return ARC_False;
|
||||
}
|
||||
|
||||
ARC_Keyboard_Update(input->keyboard);
|
||||
ARC_Mouse_Update(input->mouse);
|
||||
|
||||
return ARC_True;
|
||||
}
|
||||
|
||||
ARC_Keyboard *ARC_Input_GetKeyboard(ARC_Input *input){
|
||||
|
|
@ -37,4 +42,4 @@ ARC_Keyboard *ARC_Input_GetKeyboard(ARC_Input *input){
|
|||
|
||||
ARC_Mouse *ARC_Input_GetMouse(ARC_Input *input){
|
||||
return input->mouse;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue