chickadee » sdl2 » user-event-data2-raw-set!

user-event-data2-raw eventprocedure
set! (user-event-data2-raw event) valsetter
user-event-data2-raw-set! event valsetter

Get or set the event's "data2" field, as a raw pointer or #f. The meaning of this field is for you to decide.

If you want to store a pointer to a Scheme object here, be sure to evict the object first. Otherwise the object's location in memory might change, rendering the pointer invalid.