From d056982a830fbebe98966876697ec724d01c14a6 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 20 May 2006 19:59:34 +0000 Subject: Display immediately fields whose values are "...", if possible. --- hardinfo2/arch/linux/common/inputdevices.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'hardinfo2/arch/linux/common') diff --git a/hardinfo2/arch/linux/common/inputdevices.h b/hardinfo2/arch/linux/common/inputdevices.h index c32015a2..44a109ca 100644 --- a/hardinfo2/arch/linux/common/inputdevices.h +++ b/hardinfo2/arch/linux/common/inputdevices.h @@ -37,6 +37,7 @@ static struct { { "Keyboard", "keyboard.png" }, { "Joystick", "joystick.png" }, { "Mouse", "mouse.png" }, + { "Speaker", "audio.png" }, { "Unknown", "module.png" }, }; @@ -84,9 +85,13 @@ scan_inputdevices(void) else if (strstr(tmp, "mouse")) d = 2; //INPUT_MOUSE; else - d = 3; //INPUT_UNKNOWN; + d = 4; //INPUT_UNKNOWN; break; case '\n': + if (strstr(name, "PC Speaker")) { + d = 3; // INPUT_PCSPKR + } + tmp = g_strdup_printf("INP%d", ++n); input_list = g_strdup_printf("%s$%s$%s=\n", input_list, -- cgit v1.2.3