brian.uicontrol.UiEventsListener
- UiEventsListener
UiEventsListener class objects
KnobEvent class objects
turn_delta
turned_to
is_pressed
just_pressed
just_released
ButtonEvent class objects
is_pressed
just_pressed
just_released
ButtonsEvent class objects
top_left
top_right
bottom_left
bottom_right
any_button
any_button_incl_knob
Button class objects
last_button_event
wait_for_press
Waits for next button press event.
This function is blocking.
Arguments:
timeout_ms
: Maximum number of milliseconds to wait. If the timeout is negative, the function will wait indefinitely.
Returns:
success
: - True: If the desired button event was caught.
- False: If the timeout ran out.
wait_for_release
Waits for next button release event.
This function is blocking.
Arguments:
timeout_ms
: Maximum number of milliseconds to wait. If the timeout is negative, the function will wait indefinitely.
Returns:
success
: - True: If the desired button event was caught.
- False: If the timeout ran out.
wait_for_press_and_release
Waits for next button press and release event.
This function is blocking.
Arguments:
timeout_ms
: Maximum number of milliseconds to wait. If the timeout is negative, the function will wait indefinitely.
Returns:
success
: - True: If the desired button event was caught.
- False: If the timeout ran out.
Knob class objects
last_button_event
wait_for_directional_turn
Waits for next directional turn of the knob.
This function is blocking.
Arguments:
clockwise
: Whether to wait for clockwise or counterclockwise turn.timeout_ms
: Maximum number of milliseconds to wait. If the timeout is negative, the function will wait indefinitely.
Returns:
success
: - True: If the desired button event was caught.
- False: If the timeout ran out.
wait_for_any_turn
Waits for next any turn of the knob.
This function is blocking.
Arguments:
timeout_ms
: Maximum number of milliseconds to wait. If the timeout is negative, the function will wait indefinitely.
Returns:
success
: - True: If the desired button event was caught.
- False: If the timeout ran out.
top_left_button
top_right_button
bottom_left_button
bottom_right_button
any_button
any_button_incl_knob
knob
__init__
knob_event_since_last
This function will reset just_pressed, just_released fields and turn_delta fields.
Returns:
KnobEvent class of events that happened since last call.