switch: fix touch creating double events

This commit is contained in:
rsn8887 2020-04-16 10:07:22 -05:00 committed by Dave Murphy
parent 1b31368a40
commit 9d5383ff8f

View File

@ -25,6 +25,7 @@
#include <switch.h>
#include "SDL_events.h"
#include "SDL_hints.h"
#include "../../events/SDL_touch_c.h"
#include "../../video/SDL_sysvideo.h"
@ -50,6 +51,7 @@ void
SWITCH_InitTouch(void)
{
SDL_AddTouch((SDL_TouchID) 0, SDL_TOUCH_DEVICE_DIRECT, "Switch");
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
}
void