//
// -[CCWindow keyDown:] from 0x100797730 to 0x1007977d6 (166 bytes)
//
// 2 xrefs:
// > -[CCWindow keyDown:] @ 0x1007977c4
// > ??> @ 0x10099b698
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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);
}
}
}