mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
puzzles: make Untangle's input code return UI_UPDATE instead of ""
This was changed upstream and slipped by when I was merging the changes. Change-Id: I3a53cd2db5a5cd2ffef52719a048b8ff4c80d1aa
This commit is contained in:
parent
819d3ee02e
commit
3ad9caeb2a
1 changed files with 8 additions and 8 deletions
|
@ -1219,7 +1219,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
||||||
if(best >= 0)
|
if(best >= 0)
|
||||||
{
|
{
|
||||||
ui->cursorpoint = best;
|
ui->cursorpoint = best;
|
||||||
return "";
|
return UI_UPDATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(ui->dragpoint >= 0)
|
else if(ui->dragpoint >= 0)
|
||||||
|
@ -1229,16 +1229,16 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
||||||
{
|
{
|
||||||
case CURSOR_UP:
|
case CURSOR_UP:
|
||||||
ui->newpoint.y -= ds->tilesize / CURSOR_GRANULARITY;
|
ui->newpoint.y -= ds->tilesize / CURSOR_GRANULARITY;
|
||||||
return "";
|
return UI_UPDATE;
|
||||||
case CURSOR_DOWN:
|
case CURSOR_DOWN:
|
||||||
ui->newpoint.y += ds->tilesize / CURSOR_GRANULARITY;
|
ui->newpoint.y += ds->tilesize / CURSOR_GRANULARITY;
|
||||||
return "";
|
return UI_UPDATE;
|
||||||
case CURSOR_LEFT:
|
case CURSOR_LEFT:
|
||||||
ui->newpoint.x -= ds->tilesize / CURSOR_GRANULARITY;
|
ui->newpoint.x -= ds->tilesize / CURSOR_GRANULARITY;
|
||||||
return "";
|
return UI_UPDATE;
|
||||||
case CURSOR_RIGHT:
|
case CURSOR_RIGHT:
|
||||||
ui->newpoint.x += ds->tilesize / CURSOR_GRANULARITY;
|
ui->newpoint.x += ds->tilesize / CURSOR_GRANULARITY;
|
||||||
return "";
|
return UI_UPDATE;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1254,7 +1254,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
||||||
ui->newpoint.x = state->pts[ui->dragpoint].x * ds->tilesize / state->pts[ui->dragpoint].d;
|
ui->newpoint.x = state->pts[ui->dragpoint].x * ds->tilesize / state->pts[ui->dragpoint].d;
|
||||||
ui->newpoint.y = state->pts[ui->dragpoint].y * ds->tilesize / state->pts[ui->dragpoint].d;
|
ui->newpoint.y = state->pts[ui->dragpoint].y * ds->tilesize / state->pts[ui->dragpoint].d;
|
||||||
ui->newpoint.d = ds->tilesize;
|
ui->newpoint.d = ds->tilesize;
|
||||||
return "";
|
return UI_UPDATE;
|
||||||
}
|
}
|
||||||
else if(ui->dragpoint >= 0)
|
else if(ui->dragpoint >= 0)
|
||||||
{
|
{
|
||||||
|
@ -1273,7 +1273,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
||||||
ui->newpoint.x >= (long)state->w*ui->newpoint.d ||
|
ui->newpoint.x >= (long)state->w*ui->newpoint.d ||
|
||||||
ui->newpoint.y < 0 ||
|
ui->newpoint.y < 0 ||
|
||||||
ui->newpoint.y >= (long)state->h*ui->newpoint.d)
|
ui->newpoint.y >= (long)state->h*ui->newpoint.d)
|
||||||
return "";
|
return UI_UPDATE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We aren't cancelling the drag. Construct a move string
|
* We aren't cancelling the drag. Construct a move string
|
||||||
|
@ -1287,7 +1287,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
||||||
else if(ui->cursorpoint < 0)
|
else if(ui->cursorpoint < 0)
|
||||||
{
|
{
|
||||||
ui->cursorpoint = 0;
|
ui->cursorpoint = 0;
|
||||||
return "";
|
return UI_UPDATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue