Skip to content

Commit

Permalink
fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaAK committed May 30, 2016
1 parent c868672 commit 49a4ab3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trikGui/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Controller::Controller(const QString &configPath)

trikKernel::Configurer configurer(correctedConfigPath + "system-config.xml"
, correctedConfigPath + "model-config.xml");
//configurer.attributeByDevice("gamepad", "optional");

mGamepad.reset(trikNetwork::GamepadFactory::create(configurer));
connect(mGamepad.data(), SIGNAL(disconnect()), this, SIGNAL(gamepadDisconnected()));
Expand Down Expand Up @@ -137,10 +136,11 @@ bool Controller::communicatorConnectionStatus()

bool Controller::gamepadConnectionStatus() const
{
if (mGamepad != nullptr){
if (mGamepad != nullptr) {
return mGamepad->isConnected();
}
} else {
return false;
}
}

void Controller::updateCommunicatorStatus()
Expand Down

0 comments on commit 49a4ab3

Please sign in to comment.