//
// DialogLayer::keyDown from 0x609ad0 to 0x609afc (44 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'DialogLayer::keyDown @ 0x609b00
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:54:47 +0000
//
DialogLayer *__fastcall DialogLayer::keyDown(DialogLayer *this, int a2)
{
bool v2; // zf
if ( a2 == 38 )
return (DialogLayer *)DialogLayer::handleDialogTap(this);
if ( a2 > 38 )
{
if ( a2 == 1013 || a2 == 1015 )
return (DialogLayer *)DialogLayer::handleDialogTap(this);
v2 = a2 == 1001;
}
else
{
if ( a2 == 27 )
return (DialogLayer *)DialogLayer::handleDialogTap(this);
v2 = a2 == 32;
}
if ( v2 )
return (DialogLayer *)DialogLayer::handleDialogTap(this);
return this;
}