diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-01-17 10:44:13 -0600 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-01-17 13:30:15 -0600 |
commit | 36144a56905046d0dee1fd369f9eb4e130e18c35 (patch) | |
tree | cb86bc935041681906403c6e227372a300f7643b /src/input_common/drivers/udp_client.h | |
parent | 480b03b6456b2fef81226c449493f6425e5137da (diff) |
input_common: Report battery for UDP controllers
Diffstat (limited to 'src/input_common/drivers/udp_client.h')
-rw-r--r-- | src/input_common/drivers/udp_client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input_common/drivers/udp_client.h b/src/input_common/drivers/udp_client.h index 1adc947c45..61a1fff376 100644 --- a/src/input_common/drivers/udp_client.h +++ b/src/input_common/drivers/udp_client.h @@ -15,6 +15,7 @@ namespace InputCommon::CemuhookUDP { class Socket; namespace Response { +enum class Battery : u8; struct PadData; struct PortInfo; struct TouchPad; @@ -137,6 +138,9 @@ private: // Translates configuration to client number std::size_t GetClientNumber(std::string_view host, u16 port) const; + // Translates UDP battery level to input engine battery level + BatteryLevel GetBatteryLevel(Response::Battery battery) const; + void OnVersion(Response::Version); void OnPortInfo(Response::PortInfo); void OnPadData(Response::PadData, std::size_t client); |