{"type": "func", "start": 6442736224, "end": 6442736267, "name": "cocos2d::CCKeyboardDispatcher::updateModifierKeys", "pseudocode": "// \n// cocos2d::CCKeyboardDispatcher::updateModifierKeys from 0x180045a60 to 0x180045a8b (43 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCEGLView::pumpRawInput @ 0x1800783e2\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1704\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCKeyboardDispatcher::updateModifierKeys(\n        cocos2d::CCKeyboardDispatcher *this,\n        bool a2,\n        char a3,\n        bool a4,\n        bool a5)\n{\n  this->m_bShiftPressed = a2;\n  if ( a3 || a5 )\n  {\n    this->m_bAltPressed = a4;\n    this->m_bControlPressed = 1;\n    this->m_bCommandPressed = a5;\n  }\n  else\n  {\n    this->m_bAltPressed = a4;\n    this->m_bControlPressed = 0;\n    this->m_bCommandPressed = 0;\n  }\n}", "assembly": "; \n; cocos2d::CCKeyboardDispatcher::updateModifierKeys from 0x180045a60 to 0x180045a8b (43 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCEGLView::pumpRawInput @ 0x1800783e2\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1704\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rcx+58h], dl                                                  ; +0x0, 0x180045a60\nmovzx   edx, [rsp+arg_20]                                              ; +0x3, 0x180045a63\ntest    r8b, r8b                                                       ; +0x8, 0x180045a68\njnz     short loc_180045A7E                                            ; +0xb, 0x180045a6b\ntest    dl, dl                                                         ; +0xd, 0x180045a6d\njnz     short loc_180045A7E                                            ; +0xf, 0x180045a6f\nxor     al, al                                                         ; +0x11, 0x180045a71\nmov     [rcx+5Ah], r9b                                                 ; +0x13, 0x180045a73\nmov     [rcx+59h], al                                                  ; +0x17, 0x180045a77\nmov     [rcx+5Bh], dl                                                  ; +0x1a, 0x180045a7a\nretn                                                                   ; +0x1d, 0x180045a7d\nmov     al, 1                                                          ; +0x1e, 0x180045a7e\nmov     [rcx+5Ah], r9b                                                 ; +0x20, 0x180045a80\nmov     [rcx+59h], al                                                  ; +0x24, 0x180045a84\nmov     [rcx+5Bh], dl                                                  ; +0x27, 0x180045a87\nretn                                                                   ; +0x2a, 0x180045a8a", "xrefs": ["cocos2d::CCEGLView::pumpRawInput @ 0x1800783e2", "<???> @ 0x1801438a8", "<???> @ 0x1801b1704"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}