//
// -[CCWindow keyDown:] from 0x100878130 to 0x1008781d6 (166 bytes)
//
// 2 xrefs:
// > -[CCWindow keyDown:] @ 0x1008781c4
// > ??> @ 0x100bdd768
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:36:53 +0000
//
void __cdecl -[CCWindow keyDown:](CCWindow *self, SEL a2, id a3)
{
id v4; // r15
objc_super v5; // [rsp+0h] [rbp-30h] BYREF
if ( (unsigned __int16)objc_msgSend(a3, "keyCode") == 53 )
{
v4 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView");
if ( (unsigned __int8)objc_msgSend(v4, "isFullScreen") )
{
objc_msgSend(v4, "setFullScreen:borderless:", 0, 0);
}
else
{
v5.receiver = self;
v5.super_class = (Class)&OBJC_CLASS___CCWindow;
-[CCWindow keyDown:](&v5, "keyDown:", a3);
}
}
}