From f624d6d026e87ce2764cc68393428652dff54031 Mon Sep 17 00:00:00 2001 From: Chris Ye Date: Wed, 30 Sep 2020 15:20:38 -0700 Subject: [PATCH] Add OnLive Universal Controller media buttons mapping. Add media buttons like play/pause/record etc, for OnLive Universal Controller. Bug: 114679349 Test: Connect OnLive Universal Controller and play with media buttons. Change-Id: Ie69b3f7f8f13c778208454fb789113126c04966a Merged-In: Ie69b3f7f8f13c778208454fb789113126c04966a --- data/keyboards/Vendor_2378_Product_1008.kl | 5 +++++ data/keyboards/Vendor_2378_Product_100a.kl | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/data/keyboards/Vendor_2378_Product_1008.kl b/data/keyboards/Vendor_2378_Product_1008.kl index 478da03b9a78d..7b19469ab6b49 100644 --- a/data/keyboards/Vendor_2378_Product_1008.kl +++ b/data/keyboards/Vendor_2378_Product_1008.kl @@ -14,6 +14,10 @@ # OnLive, Inc. OnLive Wireless Controller, USB adapter +key 164 MEDIA_PLAY_PAUSE +key 167 MEDIA_RECORD +key 168 MEDIA_REWIND +key 208 MEDIA_FAST_FORWARD key 304 BUTTON_A key 305 BUTTON_B key 307 BUTTON_X @@ -22,6 +26,7 @@ key 310 BUTTON_L1 key 311 BUTTON_R1 key 315 BUTTON_START key 314 BUTTON_SELECT +key 316 BUTTON_MODE key 317 BUTTON_THUMBL key 318 BUTTON_THUMBR diff --git a/data/keyboards/Vendor_2378_Product_100a.kl b/data/keyboards/Vendor_2378_Product_100a.kl index d9cd171204646..cb2b73afee3df 100644 --- a/data/keyboards/Vendor_2378_Product_100a.kl +++ b/data/keyboards/Vendor_2378_Product_100a.kl @@ -14,6 +14,10 @@ # OnLive, Inc. OnLive Wireless Controller +key 164 MEDIA_PLAY_PAUSE +key 167 MEDIA_RECORD +key 168 MEDIA_REWIND +key 208 MEDIA_FAST_FORWARD key 304 BUTTON_A key 305 BUTTON_B key 307 BUTTON_X @@ -22,6 +26,7 @@ key 310 BUTTON_L1 key 311 BUTTON_R1 key 315 BUTTON_START key 314 BUTTON_SELECT +key 316 BUTTON_MODE key 317 BUTTON_THUMBL key 318 BUTTON_THUMBR