From 301702e548844e3df5099382e90766966940d0a9 Mon Sep 17 00:00:00 2001 From: Narr the Reg Date: Fri, 5 Aug 2022 22:33:49 -0500 Subject: hid: core: Properly emulate controller color and battery level --- src/core/hid/emulated_controller.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/hid/emulated_controller.h') diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index 823c1700c..cbd7c26d3 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h @@ -424,6 +424,13 @@ private: */ void SetCamera(const Common::Input::CallbackStatus& callback); + /** + * Converts a color format from bgra to rgba + * @param color in bgra format + * @return NpadColor in rgba format + */ + NpadColor GetNpadColor(u32 color); + /** * Triggers a callback that something has changed on the controller status * @param type Input type of the event to trigger -- cgit v1.2.3