MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / battery_callback

Function battery_callback

test/browser/test_html5_core.c:220–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220bool battery_callback(int eventType, const EmscriptenBatteryEvent *e, void *userData) {
221 printf("%s\n", emscripten_event_type_to_string(eventType));
222 log_battery_state(e);
223 return 0;
224}
225
226bool webglcontext_callback(int eventType, const void *reserved, void *userData) {
227 printf("%s.\n", emscripten_event_type_to_string(eventType));

Callers

nothing calls this directly

Calls 3

printfFunction · 0.85
log_battery_stateFunction · 0.85

Tested by

no test coverage detected