diff options
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -258,6 +258,24 @@ void ui_event_window(SDL_Event *event, ui_window *uiw) sv->xsection_flags &= ~XSECTION_E; sv->xsection_flags |= XSECTION_H; break; + + case SDLK_z: + if (sv->select_valid) + { + phy_field_info *fi = &sv->sim->field_info; + size_t *coords; + + coords = calloc(3, sizeof(size_t)); + assert(coords); + + coords[0] = sv->select[0] * fi->width; + coords[1] = sv->select[1] * fi->height; + coords[2] = sv->select[2] * fi->depth; + + itc_chan_push(&sv->sim->ctl, PHY_CMD_DEBUG, + coords); + break; + } } } } |