MOUSE_RIGHT_DOWN()

MOUSE_RIGHT_DOWN(N)

RETOURNE 1 SI LE BOUTON DROIT DE LA SOURIS EST ENFONCÉ SUR L'OBJET SYSTÈME NUMÉRO N, 0 SINON

  • Type: Fonction
  • Paramètre: 1
  • Groupe: Souris

ACTION

La fonction MOUSE_RIGHT_DOWN(N) retourne 1 si le bouton droit de la souris est enfoncé sur l'objet système numéro N et 0 sinon.

SYNTAXE : Résultat=MOUSE_RIGHT_DOWN(N)

  • N = numéro d'objet système (entier ou réel). Doit être supérieur ou égal à 0 et inférieur ou égal au nombre maximum permis d'objets systèmes.

UTILISATION

  • La fonction MOUSE_RIGHT_DOWN() est utilisée pour savoir si le bouton droit de la souris a été enfoncé sur un objet système, dans les jeux 2D et 3D.

ERREUR

  • Si le nombre N n'est pas une expression correcte.
  • Si le nombre N dépasse le nombre maximum permis d'objets systèmes.
  • Si le nombre N est inférieur à 0.
  • Si l'objet système numéro N n'existe pas.
  • Si l'objet système numéro N est du type : MAIN_MENU, SUB_MENU, SOUND, OPEN_DIALOG, SAVE_DIALOG, DLIST, TIMER, MAIN_MENU_POP,
  • OPEN_DIALOG_PIC, SAVE_DIALOG_PIC, SERIAL.

EXEMPLE

picture 1

rem imprime les positions en X et Y de la souris quand on enfonce le bouton droit sur picture 1

if mouse_right_down(1)=1

print mouse_x_right_down(1)

print mouse_y_right_down(1)

end_if

EN RAPPORT

MOUSE_X_POSITION()

MOUSE_Y_POSITION()

MOUSE_RIGHT_UP()

MOUSE_LEFT_UP()

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()