]> git.mxchange.org Git - quix0rs-blobwars.git/commit
Fix hub pointer motion.
authorGuus Sliepen <guus@debian.org>
Sat, 21 Nov 2015 17:07:56 +0000 (18:07 +0100)
committerGuus Sliepen <guus@debian.org>
Sat, 21 Nov 2015 17:12:53 +0000 (18:12 +0100)
commiteb1121cb52d46d3e519f4cd359deb5d9697e9c49
tree051b5d6544a25307977dea206b075a65078eda63
parent0e7253d9244ce174a12fbed7bf907a916f0d68dc
Fix hub pointer motion.

Use mouse motion events to find out where the mouse is. This doesn't
require scaling with the window size anymore, unlike
SDL_GetMouseState(). Also, don't use SDL_WarpMouseInWindow() anymore, it
doesn't seem to work correctly anymore. Instead, just update our idea of
the mouse pointer's position.
src/CEngine.cpp
src/CEngine.h
src/hub.cpp
src/init.cpp