mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-15 08:28:15 -05:00
input_common: Report battery for UDP controllers
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user