mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-14 18:48:04 -07:00
fix dark links input in mirror mode (#3109)
This commit is contained in:
parent
d22ca3cfc3
commit
325c7fe365
1 changed files with 4 additions and 0 deletions
|
@ -591,6 +591,10 @@ void EnTorch2_Update(Actor* thisx, PlayState* play2) {
|
|||
input->prev.button = input->cur.button & (u16) ~(BTN_A | BTN_B);
|
||||
PadUtils_UpdateRelXY(input);
|
||||
|
||||
if (CVarGetInteger("gMirroredWorld", 0)) {
|
||||
input->rel.stick_x *= -1;
|
||||
}
|
||||
|
||||
input->press.stick_x += (s8)(input->cur.stick_x - input->prev.stick_x);
|
||||
input->press.stick_y += (s8)(input->cur.stick_y - input->prev.stick_y);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue