projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added enabling debug mode on Android when compiled with 'DEBUG' defined
[rocksndiamonds.git]
/
src
/
game_em
/
input.c
diff --git
a/src/game_em/input.c
b/src/game_em/input.c
index b2c79ac7f79e475cb4f34214bd0e897f4d6a0c62..b8e2e663b1f5f96df79356adc6dea8b8220ba33e 100644
(file)
--- a/
src/game_em/input.c
+++ b/
src/game_em/input.c
@@
-119,6
+119,9
@@
void readjoy(byte action, struct PLAYER *ply)
int north = 0, east = 0, south = 0, west = 0;
int snap = 0, drop = 0;
int north = 0, east = 0, south = 0, west = 0;
int snap = 0, drop = 0;
+ if (game_em.use_single_button && action & (JOY_BUTTON_1 | JOY_BUTTON_2))
+ action |= JOY_BUTTON_1 | JOY_BUTTON_2;
+
if (action & JOY_LEFT)
west = 1;
if (action & JOY_LEFT)
west = 1;