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:
dborth 2012-03-18 15:52:20 +00:00
parent 90ff37b184
commit 17880749e0

View File

@ -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;