aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/device.c5
-rw-r--r--src/device.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index aeffccd..753a7b0 100644
--- a/src/device.c
+++ b/src/device.c
@@ -387,6 +387,7 @@ device_kind_to_string (UpDeviceKind kind)
case UP_DEVICE_KIND_MEDIA_PLAYER: return "media-player";
case UP_DEVICE_KIND_TABLET: return "tablet";
case UP_DEVICE_KIND_COMPUTER: return "computer";
+ case UP_DEVICE_KIND_GAMING_INPUT: return "gaming-input";
default: return "unknown";
}
}
@@ -563,6 +564,10 @@ device_kind_to_localised_string (UpDeviceKind kind)
/* TRANSLATORS: tablet device */
text = _("Computer");
break;
+ case UP_DEVICE_KIND_GAMING_INPUT:
+ /* TRANSLATORS: game controller/joystick with internal batteries */
+ text = _("Gaming input");
+ break;
case UP_DEVICE_KIND_UNKNOWN:
/* TRANSLATORS: unknown device */
text = _("Unknown");
diff --git a/src/device.h b/src/device.h
index fad959a..1186cee 100644
--- a/src/device.h
+++ b/src/device.h
@@ -60,6 +60,7 @@ typedef enum
UP_DEVICE_KIND_MEDIA_PLAYER,
UP_DEVICE_KIND_TABLET,
UP_DEVICE_KIND_COMPUTER,
+ UP_DEVICE_KIND_GAMING_INPUT,
UP_DEVICE_KIND_LAST
}
UpDeviceKind;