The keyboard and mouse events of the last frame, to the handler and the built-in keys (stopping if the window is closed meanwhile).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(WindowProxy), | intent(inout), | target | :: | self |
subroutine dispatch_events(self) class(WindowProxy), intent(inout), target :: self integer, parameter :: capacity = 64 integer(c_int) :: events(12, capacity), n integer :: i do if (.not. self%is_open()) return n = vkf_viewer_events(self%viewer_, events, int(capacity, c_int)) do i = 1, n if (.not. self%is_open()) return call dispatch_event(self, int(events(:, i))) end do if (n < capacity) return end do end subroutine dispatch_events