Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.cpp
File · 0.85
EngineCreate
Function · 0.85
Calls
1
SetDeviceState
Function · 0.50
Tested by
1
EngineCreate
Function · 0.68