MCPcopy Create free account
hub / github.com/defold/defold / EnableAccelerometer

Function EnableAccelerometer

engine/hid/src/hid.cpp:560–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558 }
559
560 void EnableAccelerometer(HContext context)
561 {
562 dmPlatform::SetDeviceState(context->m_Window, WINDOW_DEVICE_STATE_ACCELEROMETER, true);
563 }
564
565 void ShowMouseCursor(HContext context)
566 {

Callers 2

engine.cppFile · 0.85
EngineCreateFunction · 0.85

Calls 1

SetDeviceStateFunction · 0.50

Tested by 1

EngineCreateFunction · 0.68