summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-03-31 21:27:18 +0200
committerwwylele <wwylele@gmail.com>2017-05-04 11:59:28 +0200
commit85116643b21694daefcb86adec25af10fb89622e (patch)
tree4bd4ff760baaed453185b63c661b7ad7afc27a6b /src/core/hle/service/hid/hid.h
parentMerge pull request #2606 from wwylele/ir (diff)
downloadyuzu-85116643b21694daefcb86adec25af10fb89622e.tar
yuzu-85116643b21694daefcb86adec25af10fb89622e.tar.gz
yuzu-85116643b21694daefcb86adec25af10fb89622e.tar.bz2
yuzu-85116643b21694daefcb86adec25af10fb89622e.tar.lz
yuzu-85116643b21694daefcb86adec25af10fb89622e.tar.xz
yuzu-85116643b21694daefcb86adec25af10fb89622e.tar.zst
yuzu-85116643b21694daefcb86adec25af10fb89622e.zip
Diffstat (limited to 'src/core/hle/service/hid/hid.h')
-rw-r--r--src/core/hle/service/hid/hid.h10
1 files changed, 10 insertions, 0 deletions
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: