mouse_pos.x=clamp(pointer.x,0,screen_size.x-bmap_width(mouse_map)); mouse_pos.y=clamp(pointer.y,0,screen_size.y-bmap_height(mouse_map));

// mouse_map must be defined

Quote:


...normal behavior on key press?





what do you mean?