added input_disconnect_all
parent
deeaad06e1
commit
25feb8f95f
|
@ -189,3 +189,7 @@ int input_get_mousedown(int mousebtn) {
|
|||
uint32_t mask = SDL_BUTTON(mousebtn);
|
||||
return (SDL_GetMouseState(NULL, NULL) & mask) != 0;
|
||||
}
|
||||
|
||||
void input_disconnect_all() {
|
||||
g_key_listeners_endptr = g_key_listeners;
|
||||
}
|
||||
|
|
|
@ -30,6 +30,8 @@ extern void input_init();
|
|||
extern void update_input();
|
||||
extern void input_notify_event(SDL_Event event);
|
||||
|
||||
extern void input_disconnect_all();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue