summaryrefslogtreecommitdiff
path: root/src/input_common/drivers/udp_client.h
diff options
context:
space:
mode:
authorGravatar bunnei2022-01-22 01:28:14 -0800
committerGravatar GitHub2022-01-22 01:28:14 -0800
commit8433edacb34be3e3db9462c91d91c4a78987871d (patch)
tree34116e9c9f4f6384c76641b893a90021e290c475 /src/input_common/drivers/udp_client.h
parentMerge pull request #7737 from bunnei/fix-dummy-thread-leak (diff)
parentinput_common: Report battery for UDP controllers (diff)
downloadyuzu-8433edacb34be3e3db9462c91d91c4a78987871d.tar.gz
yuzu-8433edacb34be3e3db9462c91d91c4a78987871d.tar.xz
yuzu-8433edacb34be3e3db9462c91d91c4a78987871d.zip
Merge pull request #7735 from german77/udp_battery
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.h4
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 1adc947c4..61a1fff37 100644
--- a/src/input_common/drivers/udp_client.h
+++ b/src/input_common/drivers/udp_client.h
@@ -15,6 +15,7 @@ namespace InputCommon::CemuhookUDP {
15class Socket; 15class Socket;
16 16
17namespace Response { 17namespace Response {
18enum class Battery : u8;
18struct PadData; 19struct PadData;
19struct PortInfo; 20struct PortInfo;
20struct TouchPad; 21struct TouchPad;
@@ -137,6 +138,9 @@ private:
137 // Translates configuration to client number 138 // Translates configuration to client number
138 std::size_t GetClientNumber(std::string_view host, u16 port) const; 139 std::size_t GetClientNumber(std::string_view host, u16 port) const;
139 140
141 // Translates UDP battery level to input engine battery level
142 BatteryLevel GetBatteryLevel(Response::Battery battery) const;
143
140 void OnVersion(Response::Version); 144 void OnVersion(Response::Version);
141 void OnPortInfo(Response::PortInfo); 145 void OnPortInfo(Response::PortInfo);
142 void OnPadData(Response::PadData, std::size_t client); 146 void OnPadData(Response::PadData, std::size_t client);