ir: implement new 3ds HID via ir:rst

This commit is contained in:
wwylele 2017-03-31 22:27:18 +03:00
parent 4906d0617c
commit fced3273c1
9 changed files with 207 additions and 24 deletions

View file

@ -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: