event_poll   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/external/going-native.xtm

Implementation

;; glfw poll events must be called in primary thread
(bind-func event_poll
  (lambda (time:i64 delta_t:double)
    ;; (println "HIT" time)
    (glfwPollEvents)
    (let ((next_time (+ time (convert (* 44100. delta_t)))))
      (callback next_time event_poll next_time delta_t))))


Back to Index

Similar Entries

  • PmEvent_cc_p    xtlang
  • PmEvent_note_off_p    xtlang
  • PmEvent_note_on_p    xtlang
  • Pm_Event_Channel    xtlang
  • Pm_Event_Data1    xtlang
  • Pm_Event_Data2    xtlang
  • Pm_Event_Message    xtlang
  • Pm_Event_Timestamp    xtlang
  • Pm_Event_Type    xtlang
  • available_midi_events    xtlang
  • dequeue_midi_event    xtlang
  • enqueue_midi_event    xtlang
  • glfw_poll_events    xtlang
  • midi_input_polling    xtlang
  • run_main_event_loop    xtlang