Skip to content
Permalink
Browse files

Vita: allows Link to move on 8 axis as PC version, "Casino" quest is …

…now completable
  • Loading branch information...
NicolasR committed Jul 20, 2018
1 parent 93a644e commit e1e7bc273930f1631dbd56391a97e9bb143512de
Showing with 4 additions and 4 deletions.
  1. +4 −4 Keyboard.cpp
@@ -1197,10 +1197,10 @@ int Keyboard::stickPosition(int stick, int direction) {
if (stick == RSTICK && (direction == STICK_UP || direction == STICK_DOWN)) axis = 3; // Right stick, vertical axis

axisValue = SDL_JoystickGetAxis(joystick, axis); // range is -32768 to 32767
if ((axisValue < -31000 && direction == STICK_LEFT)
|| (axisValue > 31000 && direction == STICK_RIGHT)
|| (axisValue < -31000 && direction == STICK_UP)
|| (axisValue > 31000 && direction == STICK_DOWN)) return 1;
if ((axisValue < -16384 && direction == STICK_LEFT)
|| (axisValue > 16384 && direction == STICK_RIGHT)
|| (axisValue < -16384 && direction == STICK_UP)
|| (axisValue > 16384 && direction == STICK_DOWN)) return 1;
else return 0;
#else
return 0;

0 comments on commit e1e7bc2

Please sign in to comment.
You can’t perform that action at this time.