163,18 → 163,20 |
{ |
mouse_enabled = FALSE; |
|
mouse_x = x; |
if (x < (mouse_xmin_tick / mouse_threshold)) |
mouse_x = mouse_xmin_tick / mouse_threshold; |
if (x > (mouse_xmax_tick / mouse_threshold)) |
mouse_x = mouse_xmax_tick / mouse_threshold; |
mouse_x_tick = x * mouse_threshold; |
if (mouse_x_tick < mouse_xmin_tick) |
mouse_x_tick = mouse_xmin_tick; |
if (mouse_x_tick > mouse_xmax_tick) |
mouse_x_tick = mouse_xmax_tick; |
mouse_x = (mouse_x_tick + (mouse_threshold/2)) / mouse_threshold; |
|
mouse_y = y; |
if (y < (mouse_ymin_tick / mouse_threshold)) |
mouse_y = mouse_ymin_tick / mouse_threshold; |
if (y > (mouse_ymax_tick / mouse_threshold)) |
mouse_y = mouse_ymax_tick / mouse_threshold; |
|
mouse_y_tick = y * mouse_threshold; |
if (mouse_y_tick < mouse_ymin_tick) |
mouse_y_tick = mouse_ymin_tick; |
if (mouse_y_tick > mouse_ymax_tick) |
mouse_y_tick = mouse_ymax_tick; |
mouse_y = (mouse_y_tick + (mouse_threshold/2)) / mouse_threshold; |
|
mouse_z = z; |
|
mouse_enabled = TRUE; |