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

Function NewContext

engine/hid/src/hid.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 HContext NewContext(const NewContextParams& params)
41 {
42 HContext context = new Context();
43 context->m_IgnoreMouse = params.m_IgnoreMouse;
44 context->m_IgnoreKeyboard = params.m_IgnoreKeyboard;
45 context->m_IgnoreGamepads = params.m_IgnoreGamepads;
46 context->m_IgnoreTouchDevice = params.m_IgnoreTouchDevice;
47 context->m_IgnoreAcceleration = params.m_IgnoreAcceleration;
48 context->m_FlipScrollDirection = params.m_FlipScrollDirection;
49 return context;
50 }
51
52 void SetGamepadConnectivityCallback(HContext context, FHIDGamepadFunc callback, void* callback_ctx)
53 {

Callers 3

SetUpMethod · 0.50
TEST_FFunction · 0.50
EngineCreateFunction · 0.50

Calls

no outgoing calls

Tested by 3

SetUpMethod · 0.40
TEST_FFunction · 0.40
EngineCreateFunction · 0.40