mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-16 06:55:04 -04:00
fix touch dispatcher
This commit is contained in:
parent
7aca59b20c
commit
a8e53426e3
1 changed files with 3 additions and 4 deletions
|
@ -3,11 +3,10 @@ using namespace geode::prelude;
|
|||
#include <Geode/modify/CCTouchDispatcher.hpp>
|
||||
|
||||
struct ForcePrioRevert : Modify<ForcePrioRevert, CCTouchDispatcher> {
|
||||
bool isUsingForcePrio() {
|
||||
return true;
|
||||
}
|
||||
|
||||
void addTargetedDelegate(CCTouchDelegate* delegate, int priority, bool swallowsTouches) {
|
||||
m_targetPrio = 0xb00b5; // fuck you windows i hate you for inlining isUsingForcePrio
|
||||
|
||||
log::debug("adding targeted delegate from {}", dynamic_cast<CCObject*>(delegate));
|
||||
m_forcePrio = -2;
|
||||
if (m_pTargetedHandlers->count() > 0) {
|
||||
auto handler = static_cast<CCTouchHandler*>(m_pTargetedHandlers->objectAtIndex(0));
|
||||
|
|
Loading…
Add table
Reference in a new issue