From 85116643b21694daefcb86adec25af10fb89622e Mon Sep 17 00:00:00 2001 From: wwylele Date: Fri, 31 Mar 2017 22:27:18 +0300 Subject: ir: implement new 3ds HID via ir:rst --- src/core/hle/service/hid/hid.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/core/hle/service/hid/hid.h') diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index b505cdcd5..1ef972e70 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h @@ -176,6 +176,16 @@ ASSERT_REG_POSITION(touch.index_reset_ticks, 0x2A); #undef ASSERT_REG_POSITION #endif // !defined(_MSC_VER) +struct DirectionState { + bool up; + bool down; + bool left; + bool right; +}; + +/// Translates analog stick axes to directions. This is exposed for ir_rst module to use. +DirectionState GetStickDirectionState(s16 circle_pad_x, s16 circle_pad_y); + /** * HID::GetIPCHandles service function * Inputs: -- cgit v1.2.3