about summary refs log tree commit diff
path: root/src/game/client/ui.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-07-03 00:36:07 +0200
committeroy <Tom_Adams@web.de>2011-07-03 00:36:07 +0200
commit7648ba30246ca8a692c27328145225535b8f300e (patch)
tree041882dd4a3605f5031b27dee22b08d7463bbb8c /src/game/client/ui.cpp
parent6b4080aee8b19fe6d3aba5b716d6287d51e369fd (diff)
downloadzcatch-7648ba30246ca8a692c27328145225535b8f300e.tar.gz
zcatch-7648ba30246ca8a692c27328145225535b8f300e.zip
added a different mouse sens for menus/editor
Diffstat (limited to 'src/game/client/ui.cpp')
-rw-r--r--src/game/client/ui.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/client/ui.cpp b/src/game/client/ui.cpp
index 2161bc77..00a30c15 100644
--- a/src/game/client/ui.cpp
+++ b/src/game/client/ui.cpp
@@ -53,6 +53,13 @@ int CUI::MouseInside(const CUIRect *r)
 	return 0;
 }
 
+void CUI::ConvertMouseMove(float *x, float *y)
+{
+	float Fac = (float)(g_Config.m_UiMousesens)/g_Config.m_InpMousesens;
+	*x = *x*Fac;
+	*y = *y*Fac;
+}
+
 CUIRect *CUI::Screen()
 {
 	float Aspect = Graphics()->ScreenAspect();