//
// -[CCEventDispatcher keyDown:] from 0x100295ec0 to 0x100295f56 (150 bytes)
//
// 1 xrefs:
// > ??> @ 0x100999f70
//
// 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 -[CCEventDispatcher keyDown:](CCEventDispatcher *self, SEL a2, id a3)
{
id v4; // rax
_listEntry *keyboardDelegates; // rax
_listEntry *var1; // r13
v4 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView");
objc_msgSend(v4, "keyDownExec:", a3);
if ( self->dispatchEvents_ )
{
keyboardDelegates = self->keyboardDelegates_;
if ( keyboardDelegates )
{
do
{
var1 = keyboardDelegates->var1;
if ( (keyboardDelegates->var4 & 2) != 0
&& objc_msgSend(keyboardDelegates->var2, "performSelector:withObject:", "ccKeyDown:", a3) )
{
break;
}
keyboardDelegates = var1;
}
while ( var1 );
}
}
}