I would like to receive key events from dmsdk.
So far, I’m getting the context in onAppInit:
static dmExtension::Result AppInitializeGameLib(dmExtension::AppParams* params)
{
dmLogInfo("AppInitializeGameLib");
m_HContext = dmEngine::GetHIDContext(params);
m_Keyboard = dmHID::GetKeyboard(m_HContext, 0);
return dmExtension::RESULT_OK;
}
But it looks like we don’t have access to dmHID::GetKeyboardPacket
or dmHID::GetKey()
.
Am I missing something? Is it possible?
( There is a GetGamepadPacket and a GetMousePacket, but no GetKeyboardPacket.)