wgois / OIS

Official OIS repository. Object oriented Input System
https://wgois.github.io/OIS/
zlib License
257 stars 86 forks source link

don't wrap not moved linux mouse #78

Closed rpaciorek closed 2 years ago

rpaciorek commented 2 years ago

Summary of changes

Block mouse wrapping on event with zero move (this events may be received after use XWarpPointer when pointer was not moved), to avoid event repeat-loop.

Event repeat-loop can occurs when move event (generated by wrap pointer) was received in next call of capture() (so can't be blocked by mWarped).

Affected backeds: X11

Ybalrid commented 2 years ago

Oh, I see, I think this fix #19 ?

I am currently not setup to run OIS on Linux right now, but this seems like a fine change