egui-sdl2-event

Provides event handling for egui when SDL2 is used as the windowing system.

This crate does not perform any rendering, but it can be combined with something like the egui-wgpu backend.

Most of the code is just adaptively copied from eguisdl2gl

crates.io link

Example

Clone the development repository for simple example program.

To run the example program, use this command at the root of the repository:

cargo run --bin example

Related

You might be interested in checking out eguisdl2platform as it seems to be doing the same job with more simplicity. egui_sdl2_platform depends on eguiwgpubackend whereas egui-sdl2-event depends directly on the internal egui's wgpu implementation egui-wgpu.