MCPcopy Create free account
hub / github.com/axmolengine/axmol / OnBackKeyPress

Method OnBackKeyPress

core/platform/winrt/RenderViewImpl-winrt.cpp:274–278  ·  view source on GitHub ↗

user pressed the Back Key on the phone

Source from the content-addressed store, hash-verified

272
273// user pressed the Back Key on the phone
274void RenderViewImpl::OnBackKeyPress()
275{
276 ax::EventKeyboard event(EventKeyboard::KeyCode::KEY_ESCAPE, true);
277 ax::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event);
278}
279
280void RenderViewImpl::BackButtonListener(EventKeyboard::KeyCode keyCode, Event* event)
281{

Callers 1

executeMethod · 0.80

Calls 2

getInstanceFunction · 0.85
dispatchEventMethod · 0.45

Tested by

no test coverage detected