MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onRotate

Method onRotate

tools/mcsim/main.js:410–417  ·  view source on GitHub ↗
(application, delta)

Source from the content-addressed store, hash-verified

408 application.quit();
409 }
410 onRotate(application, delta) {
411 let rotation = this.deviceRotation + delta;
412 if (rotation < 0) rotation += 360;
413 this.deviceRotation = rotation % 360;;
414 this.quitScreen();
415 this.selectDevice(application, this.deviceIndex);
416 this.launchScreen();
417 }
418 onSelectDevice(application, index) {
419 this.quitScreen();
420 this.selectDevice(application, index);

Callers

nothing calls this directly

Calls 3

quitScreenMethod · 0.95
selectDeviceMethod · 0.95
launchScreenMethod · 0.95

Tested by

no test coverage detected