input: support bluetooth key input for iot-headless 79/274879/2
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 11 May 2022 08:52:25 +0000 (17:52 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 16 May 2022 01:40:36 +0000 (10:40 +0900)
Change-Id: I9a082c36bba8a737a3f2fe29d8d75dc444803400
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
conf/input-profile-iot-headless.conf
plugins/iot-headless/input/input-config.c

index 02bcd4a..5640a99 100644 (file)
@@ -18,7 +18,7 @@
 [EventAction]
 Name=BLINKKEY_EDGE
 Enum=1000
-Keycode=power
+Keycode=bluetooth
 Duration=0,2000
 TriggerType=edge
 Action=sleep,sleep
index ce97c19..faeffb8 100644 (file)
@@ -52,6 +52,8 @@ static void parse_keycode(struct input_event_unit *ieu, const char *keycode)
 {
        if (MATCH(keycode, "power"))
                ieu->keycode = KEY_POWER;
+       else if (MATCH(keycode, "bluetooth"))
+               ieu->keycode = KEY_BLUETOOTH;
        /* add keycode list here */
 }