diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2022-08-05 22:33:49 -0500 |
|---|---|---|
| committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-08-08 13:12:02 -0500 |
| commit | 301702e548844e3df5099382e90766966940d0a9 (patch) | |
| tree | 193c293f3abf95df5855f9161da9e48c921d70f0 /src/core/hid/emulated_controller.h | |
| parent | cd5bbf0f04696d6d44dae8c4a4e5f768a70019de (diff) | |
hid: core: Properly emulate controller color and battery level
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -rw-r--r-- | src/core/hid/emulated_controller.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -425,6 +425,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 * @param is_service_update indicates if this event should only be sent to HID services |
