Skip to content

Commit

Permalink
Set SDL_HINT_TOUCH_MOUSE_EVENTS to allow touch input
Browse files Browse the repository at this point in the history
  • Loading branch information
lennonhill committed May 10, 2022
1 parent 5503595 commit 75ca3d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ffi/SDL2_0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function S.open(w, h, x, y)
end

SDL.SDL_SetMainReady()
SDL.SDL_SetHint("SDL_HINT_TOUCH_MOUSE_EVENTS", "0")

if SDL.SDL_Init(bit.bor(SDL.SDL_INIT_VIDEO,
SDL.SDL_INIT_EVENTS,
Expand Down

0 comments on commit 75ca3d6

Please sign in to comment.