MOUSE_LEFT_UP()

MOUSE_LEFT_UP(N)

RETURNS 1 IF MOUSE LEFT BUTTON IS RELEASED ON THE SYSTEM OBJECT NUMBER N, 0 OTHERWISE

  • Type: Function
  • Parameter: 1
  • Group: Mouse

ACTION

The function MOUSE_LEFT_UP(N) returns 1 if mouse left button is released on the system object number N, 0 otherwise.

SYNTAX: Result=MOUSE_LEFT_UP(N)

  • N = system object number (integer or real). Must be greater than or equal to 0 and less than or equal to the allowed maximum number of system objects.

USE

  • The function MOUSE_LEFT_UP() is used to know if left button of mouse is released on a system object, in 2D and 3D games.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If system object number N does not exist.
  • If the object number N is of type : MAIN_MENU, SUB_MENU, SOUND, OPEN_DIALOG, SAVE_DIALOG, DLIST, TIMER, MAIN_MENU_POP,
  • OPEN_DIALOG_PIC, SAVE_DIALOG_PIC, SERIAL.

EXAMPLE

picture 1

rem print X and Y positions of the mouse when the left button is released on picture1

if mouse_left_up(1)=1

print mouse_x_right_up(1)

print mouse_y_right_up(1)

end_if

SEE ALSO

MOUSE_X_POSITION()

MOUSE_Y_POSITION()

MOUSE_RIGHT_UP()

MOUSE_RIGHT_DOWN()

MOUSE_LEFT_DOWN()

MOUSE_X_RIGHT_UP()

MOUSE_X_RIGHT_DOWN()

MOUSE_Y_RIGHT_UP()

MOUSE_Y_RIGHT_DOWN()

MOUSE_X_LEFT_UP()

MOUSE_X_LEFT_DOWN()

MOUSE_Y_LEFT_UP()

MOUSE_Y_LEFT_DOWN()