OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
mouseutil.cpp
Go to the documentation of this file.
1#include "mouseutil.h"
2
3#include <Tempest/Platform>
4
5#ifdef __WINDOWS__
6#include <windows.h>
7#include <shlwapi.h>
8#else
9#include <sys/stat.h>
10#endif
11
13#ifdef __WINDOWS__
14 int mouseSpeed = 10;
15 if(SystemParametersInfoA(SPI_GETMOUSESPEED, 0, &mouseSpeed, 0)) {
16 return float(mouseSpeed)/10.f;
17 }
18 return 1.f;
19#else
20 return 1.f;
21#endif
22 }
float mouseSysSpeed()
Definition mouseutil.cpp:12