Bundle
SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.
DropEvent
File or text dropped onto a window; also the begin and complete markers around a drop
Operations
GetFile #
The dropped file's path, or the dropped text for SDL_DROPTEXT
method : public : GetFile() ~ StringReturn
| Type | Description |
|---|---|
| String | path or text, Nil for SDL_DROPBEGIN and SDL_DROPCOMPLETE |
GetTimestamp #
Timestamp of the event
method : public : GetTimestamp() ~ IntReturn
| Type | Description |
|---|---|
| Int | event timestamp |