chickadee » allegro » events

Outdated egg!

This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.

allegro

This document pertains to event related items found in the Allegro egg.

Please see the main [allegro] wiki page for more information.

Enums

event-type

event-type->int event-typeprocedure

event-type may be one of the following symbols:

  • joystick-axis
  • joystick-button-down
  • joystick-button-up
  • joystick-configuration
  • key-down
  • key-char
  • key-up
  • mouse-axes
  • mouse-button-down
  • mouse-button-up
  • mouse-enter-display
  • mouse-leave-display
  • mouse-warped
  • timer
  • display-expose
  • display-resize
  • display-close
  • display-lost
  • display-found
  • display-switch-in
  • display-switch-out
  • display-orientation
  • audio-stream-fragment
  • audio-stream-finished
int->event-type integerprocedure

Records

any-event

any-eventrecord
any-event-type any-eventprocedure
any-event-source any-eventprocedure
any-event-timestamp any-eventprocedure

display-event

display-eventrecord
display-event-type display-eventprocedure
display-event-source display-eventprocedure
display-event-timestamp display-eventprocedure
display-event-x display-eventprocedure
display-event-y display-eventprocedure
display-event-width display-eventprocedure
display-event-height display-eventprocedure
display-event-orientation display-eventprocedure

event

eventrecord
make-eventprocedure
make-event*procedure
free-event! eventprocedure

event-source

event-sourcerecord

event-queue

event-queuerecord

joystick-event

joystick-eventrecord
joystick-event-type joystick-eventprocedure
joystick-event-source joystick-eventprocedure
joystick-event-timestamp joystick-eventprocedure
joystick-event-id joystick-eventprocedure
joystick-event-stick joystick-eventprocedure
joystick-event-axis joystick-eventprocedure
joystick-event-position joystick-eventprocedure
joystick-event-button joystick-eventprocedure

keyboard-event

keyboard-eventrecord
keyboard-event-type keyboard-eventprocedure
keyboard-event-source keyboard-eventprocedure
keyboard-event-timestamp keyboard-eventprocedure
keyboard-event-display keyboard-eventprocedure
keyboard-event-keycode keyboard-eventprocedure
keyboard-event-unichar keyboard-eventprocedure
keyboard-event-modifiers keyboard-eventprocedure
keyboard-event-repeat keyboard-eventprocedure

mouse-event

mouse-eventrecord
mouse-event-type mouse-eventprocedure
mouse-event-source mouse-eventprocedure
mouse-event-timestamp mouse-eventprocedure
mouse-event-display mouse-eventprocedure
mouse-event-x mouse-eventprocedure
mouse-event-y mouse-eventprocedure
mouse-event-z mouse-eventprocedure
mouse-event-w mouse-eventprocedure
mouse-event-dx mouse-eventprocedure
mouse-event-dy mouse-eventprocedure
mouse-event-dz mouse-eventprocedure
mouse-event-dw mouse-eventprocedure
mouse-event-button mouse-eventprocedure
mouse-event-pressure mouse-eventprocedure

timer-event

timer-eventrecord
timer-event-type timer-eventprocedure
timer-event-source timer-eventprocedure
timer-event-timestamp timer-eventprocedure
timer-event-count timer-eventprocedure
timer-event-error timer-eventprocedure

user-event

user-eventrecord
user-event-type user-eventprocedure
user-event-source user-eventprocedure
user-event-timestamp user-eventprocedure
user-event-data1 user-eventprocedure
user-event-data1-set! user-event integersetter
user-event-data2 user-eventprocedure
user-event-data2-set! user-event integersetter
user-event-data3 user-eventprocedure
user-event-data3-set! user-event integersetter
user-event-data4 user-eventprocedure
user-event-data4-set! user-event integersetter

Functions

user-event-type? integerprocedure

Implements ALLEGRO_EVENT_TYPE_IS_USER.

(make-event-type (integer a) (integer b) (integer c) (integer d))procedure

Implements ALLEGRO_GET_EVENT_TYPE.

event-type eventprocedure

Returns the type of a given event struct.

event->any-event eventprocedure

Converts an event to an any-event.

event->display-event eventprocedure

Converts an event to a display-event.

event->joystick-event eventprocedure

Converts an event to a joystick-event.

event->keyboard-event eventprocedure

Converts an event to a keyboard-event.

event->mouse-event eventprocedure

Converts an event to a mouse-event.

event->timer-event eventprocedure

Converts an event to a timer-event.

event->user-event eventprocedure

Converts an event to a user-event.

user-event-source-init! event-sourceprocedure

Implements al_init_user_event_source.

free-user-event-source! event-sourceprocedure

Implements al_destroy_user_event_source.

(emit-user-event! event-source event (function void (user-event)))procedure

Implements al_emit_user_event.

user-event-unref! user-eventprocedure

Implements al_unref_user_event.

event-source-data event-sourceprocedure

Implements al_get_event_source_data.

event-source-data-set! event-source integerprocedure

Implements al_set_event_source_data.

make-event-queue*procedure

Implements al_create_event_queue.

make-event-queueprocedure

Implements al_create_event_queue, with (free-event-queue!) declared as a finalizer.

free-event-queue! event-queueprocedure

Implements al_destroy_event_queue.

event-queue-register-source! event-queue event-sourceprocedure

Implements al_register_event_source.

event-queue-unregister-source! event-queue event-sourceprocedure

Implements al_unregister_event_source.

event-queue-empty? event-queueprocedure

Implements al_is_event_queue_empty.

event-queue-next! event-queue eventprocedure

Implements al_get_next_event.

event-queue-peek! event-queue eventprocedure

Implements al_peek_next_event.

event-queue-drop-next! event-queueprocedure

Implements al_drop_next_event_queue.

event-queue-flush! event-queueprocedure

Implements al_drop_next_event.

event-queue-wait! event-queue eventprocedure

Implements al_wait_for_event.

event-queue-timed-wait! event-queue event floatprocedure

Implements al_wait_for_event_timed.

event-queue-wait-until! event-queue event timeoutprocedure

Implements al_wait_for_event_until.

Contents »