Added "return to origin point (0,0)" feature to Tilemap Viewer (tied with HOME key) [Angelo Salese]

This commit is contained in:
angelosa 2016-06-24 00:12:02 +02:00
parent 7a6d73d548
commit 5ece80fe5d

View File

@ -1097,6 +1097,14 @@ static void tilemap_handle_keys(running_machine &machine, ui_gfx_state &state, i
state.bitmap_dirty = true;
}
// return to (0,0) (HOME)
if( machine.ui_input().pressed(IPT_UI_HOME))
{
state.tilemap.xoffs = 0;
state.tilemap.yoffs = 0;
state.bitmap_dirty = true;
}
// handle navigation (up,down,left,right)
step = 8;
if (machine.input().code_pressed(KEYCODE_LSHIFT)) step = 1;