chickadee » sdl2 » display-event-data1

display-event-data1 eventprocedure
set! (display-event-data1 event) datasetter
display-event-data1-set! event datasetter

Get or set the event's "data1" field, as an integer of event-dependent data.

If the event is a orientation kind of display-event, this field contains the new orientation as an integer enum. You can use display-event-orientation to access it as a symbol.

Requires SDL 2.0.9 or higher, and sdl2 egg 0.4.0 or higher.