summaryrefslogtreecommitdiffstats
path: root/src/GlobalState.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-12 07:56:07 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:34 +0100
commit7bb460ab7274c46019315cf9aba1d308189ab0de (patch)
tree8565d93cfb7ad5a536a218e114309b2a0122c7a1 /src/GlobalState.cpp
parentSingle mutex for event system (diff)
downloadAltCraft-7bb460ab7274c46019315cf9aba1d308189ab0de.tar
AltCraft-7bb460ab7274c46019315cf9aba1d308189ab0de.tar.gz
AltCraft-7bb460ab7274c46019315cf9aba1d308189ab0de.tar.bz2
AltCraft-7bb460ab7274c46019315cf9aba1d308189ab0de.tar.lz
AltCraft-7bb460ab7274c46019315cf9aba1d308189ab0de.tar.xz
AltCraft-7bb460ab7274c46019315cf9aba1d308189ab0de.tar.zst
AltCraft-7bb460ab7274c46019315cf9aba1d308189ab0de.zip
Diffstat (limited to 'src/GlobalState.cpp')
-rw-r--r--src/GlobalState.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GlobalState.cpp b/src/GlobalState.cpp
index e947e01..f04bb35 100644
--- a/src/GlobalState.cpp
+++ b/src/GlobalState.cpp
@@ -143,10 +143,10 @@ void PhysExec() {
}
});
- listener.RegisterHandler("MouseMoved", [](const Event& eventData) {
+ listener.RegisterHandler("MouseMove", [](const Event& eventData) {
if (!gs)
return;
- auto data = eventData.get<std::tuple<float,float>>();
+ auto data = eventData.get<std::tuple<double,double>>();
gs->HandleRotation(std::get<0>(data),std::get<1>(data));
});