ofwin_buttonpress Subroutine

public subroutine ofwin_buttonpress(x, y, button)

Create a mouse button pressed event.

This applies to the current active WindowProxy.

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(in) :: x

X-coordinate of the mouse in the window.

real(kind=real32), intent(in) :: y

Y-coordinate of the mouse in the window.

integer(kind=int32), intent(in) :: button

Mouse button pressed. Button numbering is 1 for left mouse button, 2 for middle, 3 for right.