Use short motion status name

This commit is contained in:
german
2020-09-03 11:50:09 -05:00
parent 40416d9ec8
commit 7978fe5178
2 changed files with 3 additions and 6 deletions

View File

@@ -16,6 +16,7 @@
#include "common/thread.h"
#include "common/threadsafe_queue.h"
#include "common/vector_math.h"
#include "core/frontend/input.h"
#include "input_common/motion_input.h"
namespace InputCommon::CemuhookUDP {
@@ -54,9 +55,7 @@ struct UDPPadStatus {
struct DeviceStatus {
std::mutex update_mutex;
std::tuple<Common::Vec3<float>, Common::Vec3<float>, Common::Vec3<float>,
std::array<Common::Vec3f, 3>>
motion_status;
Input::MotionStatus motion_status;
std::tuple<float, float, bool> touch_status;
// calibration data for scaling the device's touch area to 3ds

View File

@@ -18,9 +18,7 @@ public:
UDPMotion(std::string ip_, int port_, int pad_, InputCommon::CemuhookUDP::Client* client_)
: ip(ip_), port(port_), pad(pad_), client(client_) {}
std::tuple<Common::Vec3<float>, Common::Vec3<float>, Common::Vec3<float>,
std::array<Common::Vec3f, 3>>
GetStatus() const override {
Input::MotionStatus GetStatus() const override {
return client->GetPadState(pad).motion_status;
}