mirror of
https://github.com/holub/mame
synced 2025-06-28 15:14:21 +03:00
Added "return to origin point (0,0)" feature to Tilemap Viewer (tied with HOME key) [Angelo Salese]
This commit is contained in:
parent
7a6d73d548
commit
5ece80fe5d
@ -1097,6 +1097,14 @@ static void tilemap_handle_keys(running_machine &machine, ui_gfx_state &state, i
|
|||||||
state.bitmap_dirty = true;
|
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)
|
// handle navigation (up,down,left,right)
|
||||||
step = 8;
|
step = 8;
|
||||||
if (machine.input().code_pressed(KEYCODE_LSHIFT)) step = 1;
|
if (machine.input().code_pressed(KEYCODE_LSHIFT)) step = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user