Loosen up the dpad diagonals again quite a bit.

This commit is contained in:
Henrik Rydgard committed 2013-12-10 23:38:02 +01:00
1 parent 7271367ac1
commit eecc705696
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ void PSPDpad::ProcessTouch(float x, float y, bool down) {
int ctrlMask = 0;
int lastDown = down_;
bool fourWay = g_Config.bDisableDpadDiagonals || rad < 1.25f;
bool fourWay = g_Config.bDisableDpadDiagonals || rad < 0.7f;
if (down) {
if (fourWay) {
int direction = (int)(floorf((atan2f(dy, dx) / (2 * M_PI) * 4) + 0.5f)) & 3;