diff options
| author | bunnei <bunneidev@gmail.com> | 2022-08-09 16:21:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-09 16:21:23 -0700 |
| commit | 0069b5e118dbc91f2a8b3c30612ea223864c6527 (patch) | |
| tree | 2103bb82bf7fe9e9669dc4a9992af8621a64cece /src/core/hid/emulated_controller.h | |
| parent | 4bd8adfe422544097c654e9b44a90699887177d0 (diff) | |
| parent | 301702e548844e3df5099382e90766966940d0a9 (diff) | |
Merge pull request #8724 from german77/no_alpha
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 |
