xfangfang / borealis

Hardware accelerated, Nintendo Switch inspired UI library for PC, Android, iOS, PSV, PS4 and Nintendo Switch
Apache License 2.0
31 stars 21 forks source link

SDL: Fix touchpad click missing in macOS #31

Closed xfangfang closed 1 year ago

xfangfang commented 1 year ago

在macOS上快速点击触摸板将导致同时产生“按下”和“抬起”事件,这会导致在SDL拉取事件时认为没有点击发生。参考GLFW的实现,通过增加第三个状态来将抬起事件延迟到下一帧触发。