mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-29 05:54:17 +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
53265428d0
commit
2dd5889c1a
@ -318,7 +318,7 @@ u32 StandardMovement(unsigned short chan)
|
|||||||
{
|
{
|
||||||
u32 J = 0;
|
u32 J = 0;
|
||||||
double angle;
|
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_x = userInput[chan].pad.stickX;
|
||||||
s8 pad_y = userInput[chan].pad.stickY;
|
s8 pad_y = userInput[chan].pad.stickY;
|
||||||
|
Loading…
Reference in New Issue
Block a user