diff options
| author | 2022-08-09 16:21:23 -0700 | |
|---|---|---|
| committer | 2022-08-09 16:21:23 -0700 | |
| commit | 0069b5e118dbc91f2a8b3c30612ea223864c6527 (patch) | |
| tree | 2103bb82bf7fe9e9669dc4a9992af8621a64cece /src/core/hid/emulated_controller.h | |
| parent | Merge pull request #8729 from merryhime/cp15-barriers (diff) | |
| parent | hid: core: Properly emulate controller color and battery level (diff) | |
| download | yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.tar.gz yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.tar.xz yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.zip | |
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: | |||
| 425 | void SetCamera(const Common::Input::CallbackStatus& callback); | 425 | void SetCamera(const Common::Input::CallbackStatus& callback); |
| 426 | 426 | ||
| 427 | /** | 427 | /** |
| 428 | * Converts a color format from bgra to rgba | ||
| 429 | * @param color in bgra format | ||
| 430 | * @return NpadColor in rgba format | ||
| 431 | */ | ||
| 432 | NpadColor GetNpadColor(u32 color); | ||
| 433 | |||
| 434 | /** | ||
| 428 | * Triggers a callback that something has changed on the controller status | 435 | * Triggers a callback that something has changed on the controller status |
| 429 | * @param type Input type of the event to trigger | 436 | * @param type Input type of the event to trigger |
| 430 | * @param is_service_update indicates if this event should only be sent to HID services | 437 | * @param is_service_update indicates if this event should only be sent to HID services |