diff options
-rw-r--r-- | src/frontend/mame/ui/viewgfx.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/viewgfx.cpp b/src/frontend/mame/ui/viewgfx.cpp index 7a416b0704d..8e55b8ac86f 100644 --- a/src/frontend/mame/ui/viewgfx.cpp +++ b/src/frontend/mame/ui/viewgfx.cpp @@ -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; |