mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 21:14:21 +01:00
use threshold of cos(67.5) to allow two directions to be pressed simultaneously (eg: down+right) (patch by KruLLo)
This commit is contained in:
parent
90ff37b184
commit
17880749e0
@ -383,7 +383,7 @@ static void decodepad (int chan)
|
||||
{
|
||||
int i, offset;
|
||||
double angle;
|
||||
static const double THRES = 1.0 / sqrt(2.0);
|
||||
static const double THRES = cos(67.5);
|
||||
|
||||
s8 pad_x = userInput[chan].pad.stickX;
|
||||
s8 pad_y = userInput[chan].pad.stickY;
|
||||
|
Loading…
Reference in New Issue
Block a user