mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
(Android) Better pad directional macros
This commit is contained in:
parent
d79d15c79d
commit
b236fb47bf
@ -26,10 +26,10 @@
|
||||
|
||||
#define MAX_TOUCH 16
|
||||
|
||||
#define PRESSED_UP(x, y) ((-0.80f > y) && (x >= -1.00f))
|
||||
#define PRESSED_DOWN(x, y) ((0.80f < y) && (y <= 1.00f))
|
||||
#define PRESSED_LEFT(x, y) ((-0.80f > x) && (x >= -1.00f))
|
||||
#define PRESSED_RIGHT(x, y) ((0.80f < x) && (x <= 1.00f))
|
||||
#define PRESSED_UP(x, y) ((y <= -0.99f))
|
||||
#define PRESSED_DOWN(x, y) ((y >= 0.99f))
|
||||
#define PRESSED_LEFT(x, y) ((x <= -0.99f))
|
||||
#define PRESSED_RIGHT(x, y) ((x >= 0.99f))
|
||||
|
||||
static unsigned pads_connected;
|
||||
static int state_device_ids[MAX_PADS];
|
||||
|
Loading…
x
Reference in New Issue
Block a user