localization and more const& params

This commit is contained in:
Mathias Panzenböck
2014-02-24 00:37:51 +01:00
parent a1d2c947c7
commit 6bd58aeb7c
13 changed files with 619 additions and 29 deletions

View File

@ -101,6 +101,18 @@ void JoyPad::open(int dev) {
debug_mesg("done resetting to dev\n");
}
const QString &JoyPad::getDeviceId() const {
return deviceId;
}
QString JoyPad::getName() const {
return tr("Joystick %1 (%2)").arg(index+1).arg(deviceId);
}
int JoyPad::getIndex() const {
return index;
}
void JoyPad::toDefault() {
//to reset the whole, reset all the parts.
foreach (Axis *axis, axes) {