mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 19:53:48 +01:00
Loosen up the dpad diagonals again quite a bit.
This commit is contained in:
1 parent
7271367ac1
commit
eecc705696
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user