added placeholder input config screen. added debug logs for jpenguin

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3430 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-04-26 00:03:46 +00:00
parent 36f5450c88
commit 3b0c85f05d
2 changed files with 69 additions and 1 deletions

View File

@ -10,5 +10,68 @@
<spacer proportion="1" width="10" proportion="1"/>
<div width="75%" height="40" layout="horizontal-row" >
<label proportion="2" height="100%" text="Accelerate"/>
<spacer width="20" height="100%" />
<button id="binding_up" proportion="1" height="100%" text="[none]"/>
</div>
<spacer height="15" width="10" proportion="1"/>
<div width="75%" height="40" layout="horizontal-row" >
<label proportion="2" height="100%" text="Brake"/>
<spacer width="20" height="100%" />
<button id="binding_down" proportion="1" height="100%" text="[none]"/>
</div>
<spacer height="15" width="10" proportion="1"/>
<div width="75%" height="40" layout="horizontal-row" >
<label proportion="2" height="100%" text="Left"/>
<spacer width="20" height="100%" />
<button id="binding_left" proportion="1" height="100%" text="[none]"/>
</div>
<spacer height="15" width="10" proportion="1"/>
<div width="75%" height="40" layout="horizontal-row" >
<label proportion="2" height="100%" text="Right"/>
<spacer width="20" height="100%" />
<button id="binding_right" proportion="1" height="100%" text="[none]"/>
</div>
<spacer height="15" width="10" proportion="1"/>
<div width="75%" height="40" layout="horizontal-row" >
<label proportion="2" height="100%" text="Fire"/>
<spacer width="20" height="100%" />
<button id="binding_fire" proportion="1" height="100%" text="[none]"/>
</div>
<spacer height="15" width="10" proportion="1"/>
<div width="75%" height="40" layout="horizontal-row" >
<label proportion="2" height="100%" text="Nitro"/>
<spacer width="20" height="100%" />
<button id="binding_nitro" proportion="1" height="100%" text="[none]"/>
</div>
<spacer height="15" width="10" proportion="1"/>
<div width="75%" height="40" layout="horizontal-row" >
<label proportion="2" height="100%" text="Sharp Turn"/>
<spacer width="20" height="100%" />
<button id="binding_drift" proportion="1" height="100%" text="[none]"/>
</div>
<spacer height="15" width="10" proportion="1"/>
<div width="75%" height="40" layout="horizontal-row" >
<label proportion="2" height="100%" text="Rescue"/>
<spacer width="20" height="100%" />
<button id="binding_rescue" proportion="1" height="100%" text="[none]"/>
</div>
<spacer height="15" width="10" proportion="1"/>
<div width="75%" height="40" layout="horizontal-row" >
<label proportion="2" height="100%" text="Look Back"/>
<spacer width="20" height="100%" />
<button id="binding_look_back" proportion="1" height="100%" text="[none]"/>
</div>
</div>

View File

@ -99,11 +99,16 @@ 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;
if(m_gamepads[n].hasBinding(type, id1 /* axis or button */, value, *player, action /* out */) )
{
std::cout << "that's the one.\n";
return true;
}
}
return false;
}