Removed unused constants.

This commit is contained in:
hiker
2014-10-31 21:06:26 +11:00
parent e9e5cab164
commit 98c8985739
2 changed files with 2 additions and 8 deletions

View File

@@ -28,13 +28,6 @@
#include <string>
#include <irrString.h>
class Binding;
const int DEADZONE_MOUSE = 150;
const int DEADZONE_MOUSE_SENSE = 200;
const int DEADZONE_JOYSTICK = 2000;
const int MULTIPLIER_MOUSE = 750;
/**
* \ingroup input
*/

View File

@@ -344,7 +344,8 @@ void gamepadVisualisation()
core::position2di pos(axis_x, axis_y + a*axis_h);
core::dimension2di size(axis_w, axis_h);
const bool deadzone = (abs(g.m_axis[a]) < DEADZONE_JOYSTICK);
// Assume a default deadzone value of 4096
const bool deadzone = (abs(g.m_axis[a]) < 4096);
core::recti fillbar(core::position2di(axis_x + axis_w/2,
axis_y + a*axis_h),