mirror of
https://github.com/dborth/fceugx.git
synced 2024-12-04 22:34:14 +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
d1db2cf249
commit
eb6271567c
@ -376,7 +376,7 @@ static unsigned char DecodeJoy(unsigned short chan)
|
||||
u32 jp = userInput[chan].pad.btns_h;
|
||||
unsigned char J = 0;
|
||||
double angle;
|
||||
static const double THRES = 1.0 / sqrt(2.0);
|
||||
static const double THRES = cos(67.5);
|
||||
|
||||
#ifdef HW_RVL
|
||||
s8 wm_ax = userInput[chan].WPAD_StickX(0);
|
||||
|
Loading…
Reference in New Issue
Block a user