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

Function orientationchange_callback

test/browser/test_html5_core.c:150–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150bool orientationchange_callback(int eventType, const EmscriptenOrientationChangeEvent *e, void *userData) {
151 printf("%s, orientationAngle: %d, orientationIndex: %d\n", emscripten_event_type_to_string(eventType), e->orientationAngle, e->orientationIndex);
152
153 return 0;
154}
155
156bool fullscreenchange_callback(int eventType, const EmscriptenFullscreenChangeEvent *e, void *userData) {
157 printf("%s, isFullscreen: %d, fullscreenEnabled: %d, fs element nodeName: \"%s\", fs element id: \"%s\". New size: %dx%d pixels. Screen size: %dx%d pixels.\n",

Callers 1

mainFunction · 0.85

Calls 2

printfFunction · 0.85

Tested by

no test coverage detected