//
// EditorUI::keyDown from 0x6f124c to 0x6f12f4 (168 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorUI::keyDown @ 0x6f12f8
//
// 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:57:35 +0000
//
int __fastcall EditorUI::keyDown(int result, int a2, int a3, int a4)
{
GJRotationControl **v4; // r4
v4 = (GJRotationControl **)result;
if ( a2 == 27 )
{
if ( (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(result + 592) + 176))(*(_DWORD *)(result + 592))
&& GJScaleControl::hasActiveInput(v4[148]) )
{
return GJScaleControl::releaseInputFocus(v4[148]);
}
else if ( (*(int (__fastcall **)(GJRotationControl *))(*(_DWORD *)v4[144] + 176))(v4[144])
&& GJRotationControl::hasActiveInput(v4[144]) )
{
return GJRotationControl::releaseInputFocus(v4[144]);
}
else
{
return (*((int (__fastcall **)(GJRotationControl **, int, int, _DWORD, int, int))*v4 + 164))(
v4,
20067,
1,
*((_DWORD *)*v4 + 164),
a3,
a4);
}
}
else if ( a2 == 13
&& (!(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(result + 592) + 176))(*(_DWORD *)(result + 592))
|| (result = GJScaleControl::applyFocusedInput(v4[148])) == 0) )
{
result = (*(int (__fastcall **)(GJRotationControl *))(*(_DWORD *)v4[144] + 176))(v4[144]);
if ( result )
return GJRotationControl::applyFocusedInput(v4[144]);
}
return result;
}