projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed variable
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index 32f7177964af22b746b8c6727cd23d207f96a5da..6def0cb60992c285be6837ad94a877c4a6a0a303 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-1275,7
+1275,7
@@
static void HandleButtonOrFinger_FollowFinger(int mx, int my, int button)
int last_move_dir = (ABS(dx) > ABS(dy) ? MV_VERTICAL : MV_HORIZONTAL);
if (level.game_engine_type == GAME_ENGINE_TYPE_EM)
int last_move_dir = (ABS(dx) > ABS(dy) ? MV_VERTICAL : MV_HORIZONTAL);
if (level.game_engine_type == GAME_ENGINE_TYPE_EM)
-
level.native_em_level->
ply[0]->last_move_dir = last_move_dir;
+
game_em.
ply[0]->last_move_dir = last_move_dir;
else
local_player->last_move_dir = last_move_dir;
else
local_player->last_move_dir = last_move_dir;
@@
-1449,6
+1449,9
@@
void HandleKeyEvent(KeyEvent *event)
{
// for any other "real" key event, disable virtual buttons
SetOverlayEnabled(FALSE);
{
// for any other "real" key event, disable virtual buttons
SetOverlayEnabled(FALSE);
+
+ // for any other "real" key event, disable overlay touch buttons
+ runtime.uses_touch_device = FALSE;
}
#endif
}
#endif