eventHandlerShim

Function eventHandlerShim 

Source
#[unsafe(no_mangle)]
pub extern "C" fn eventHandlerShim( api: *const PlaydateAPI, event: PDSystemEvent, arg: u32, ) -> c_int
Expand description

Simple minimal proxy entry point. Registers API endpoint when called with event matches PDSystemEvent::kEventInit. It needed for allocators and panic handler.

Linking requires rust-abi symbol event_handler: fn(*const Playdate, PDSystemEvent, arg: u32) -> c_int