removed debug prints now that the bug is fixed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3436 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
915a64b15f
commit
b0ead848bc
@ -99,7 +99,7 @@ bool DeviceManager::mapInputToPlayerAndAction( Input::InputType type, int id0, i
|
||||
}
|
||||
else if(type == Input::IT_STICKBUTTON || type == Input::IT_STICKMOTION)
|
||||
{
|
||||
std::cout << "stick motion, ID=" <<id0 << " axis=" << id1 << " value=" << value << std::endl;
|
||||
// std::cout << "stick motion, ID=" <<id0 << " axis=" << id1 << " value=" << value << std::endl;
|
||||
for(unsigned int n=0; n<m_gamepad_amount; n++)
|
||||
{
|
||||
std::cout << "checking gamepad #" << n << " out of " << m_gamepad_amount << std::endl;
|
||||
|
@ -288,14 +288,6 @@ bool GamePadDevice::hasBinding(Input::InputType type, const int id, const int va
|
||||
|
||||
if(type == Input::IT_STICKMOTION)
|
||||
{
|
||||
std::cout << "For jpenguin (a)\n";
|
||||
|
||||
std::cout << "id=" << id << std::endl;
|
||||
|
||||
assert(id < m_axis_count);
|
||||
|
||||
std::cout << "m_prevAxisDirections[id]=" << m_prevAxisDirections[id] << std::endl;
|
||||
|
||||
// going to negative from positive
|
||||
if (value < 0 && m_prevAxisDirections[id] == Input::AD_POSITIVE)
|
||||
{
|
||||
@ -310,13 +302,9 @@ bool GamePadDevice::hasBinding(Input::InputType type, const int id, const int va
|
||||
resetAxisDirection(id, Input::AD_NEGATIVE, player);
|
||||
}
|
||||
|
||||
std::cout << "For jpenguin (b)\n";
|
||||
|
||||
if(value > 0) m_prevAxisDirections[id] = Input::AD_POSITIVE;
|
||||
else if(value < 0) m_prevAxisDirections[id] = Input::AD_NEGATIVE;
|
||||
|
||||
std::cout << "For jpenguin (c)\n";
|
||||
|
||||
// check if within deadzone
|
||||
if(value > -m_deadzone && value < m_deadzone)
|
||||
{
|
||||
@ -342,9 +330,7 @@ bool GamePadDevice::hasBinding(Input::InputType type, const int id, const int va
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
std::cout << "For jpenguin (d)\n";
|
||||
|
||||
|
||||
// find corresponding action and return it
|
||||
for(int n=0; n<PA_COUNT; n++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user