mirror of
https://github.com/encounter/SDL.git
synced 2025-07-07 13:46:02 +00:00
switch: fix touch creating double events
This commit is contained in:
parent
1b31368a40
commit
9d5383ff8f
@ -25,6 +25,7 @@
|
|||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
#include "SDL_events.h"
|
#include "SDL_events.h"
|
||||||
|
#include "SDL_hints.h"
|
||||||
#include "../../events/SDL_touch_c.h"
|
#include "../../events/SDL_touch_c.h"
|
||||||
#include "../../video/SDL_sysvideo.h"
|
#include "../../video/SDL_sysvideo.h"
|
||||||
|
|
||||||
@ -50,6 +51,7 @@ void
|
|||||||
SWITCH_InitTouch(void)
|
SWITCH_InitTouch(void)
|
||||||
{
|
{
|
||||||
SDL_AddTouch((SDL_TouchID) 0, SDL_TOUCH_DEVICE_DIRECT, "Switch");
|
SDL_AddTouch((SDL_TouchID) 0, SDL_TOUCH_DEVICE_DIRECT, "Switch");
|
||||||
|
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user