Fixed sticky joysticks... again.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3828 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
abfda2b933
commit
2a23fa33a8
@ -193,7 +193,7 @@ InputDevice *DeviceManager::mapGamepadInput( Input::InputType type,
|
|||||||
|
|
||||||
if (gPad != NULL)
|
if (gPad != NULL)
|
||||||
{
|
{
|
||||||
if (gPad->hasBinding(type, btnID, value, NULL, action))
|
if (gPad->hasBinding(type, btnID, value, gPad->getPlayer(), action))
|
||||||
{
|
{
|
||||||
if (m_assign_mode == NO_ASSIGN) // Don't set the player in NO_ASSIGN mode
|
if (m_assign_mode == NO_ASSIGN) // Don't set the player in NO_ASSIGN mode
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,7 @@ public:
|
|||||||
DeviceType getType() const { return m_type; };
|
DeviceType getType() const { return m_type; };
|
||||||
|
|
||||||
void setPlayer(ActivePlayer* owner);
|
void setPlayer(ActivePlayer* owner);
|
||||||
|
ActivePlayer *getPlayer() {return m_player;}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* returns a human-readable string for the key binded with the given action
|
* returns a human-readable string for the key binded with the given action
|
||||||
|
Loading…
Reference in New Issue
Block a user