summaryrefslogtreecommitdiff
path: root/src/joystick.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 22:48:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commitd3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (patch)
tree420c78c8ceda39895cce60849e3aeafedd41f081 /src/joystick.cpp
parent576b7dca4676ba2c1ea63afb6bbc96fd11183048 (diff)
downloadplus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.gz
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.bz2
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.xz
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.zip
improve some mode methods in Client.
Diffstat (limited to 'src/joystick.cpp')
-rw-r--r--src/joystick.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/joystick.cpp b/src/joystick.cpp
index 244996937..a2809d8b9 100644
--- a/src/joystick.cpp
+++ b/src/joystick.cpp
@@ -164,7 +164,7 @@ void Joystick::logic()
mDirection = 0;
- if (mUseInactive || Client::getInputFocused())
+ if (mUseInactive || client->getInputFocused())
{
// X-Axis
int position = SDL_JoystickGetAxis(mJoystick, 0);
@@ -333,7 +333,7 @@ bool Joystick::validate() const
if (mCalibrating || !mEnabled || !mCalibrated)
return false;
- return (mUseInactive || Client::getInputFocused());
+ return (mUseInactive || client->getInputFocused());
}
void Joystick::handleRepeat(const int time)