mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-16 23:40:14 -05:00
Minor performance improvement via "use namespace" access
This commit is contained in:
parent
193332b9d0
commit
bbfb3fc34c
1 changed files with 5 additions and 5 deletions
|
@ -104,7 +104,7 @@ package org.gestouch.gestures
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uninstallTarget(target);
|
uninstallTarget(target);
|
||||||
_targetAdapter = value ? Gestouch.gestouch_internal::createGestureTargetAdapter(value) : null;
|
_targetAdapter = value ? Gestouch.createGestureTargetAdapter(value) : null;
|
||||||
installTarget(value);
|
installTarget(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -328,7 +328,7 @@ package org.gestouch.gestures
|
||||||
{
|
{
|
||||||
if (target)
|
if (target)
|
||||||
{
|
{
|
||||||
_gesturesManager.gestouch_internal::addGesture(this);
|
_gesturesManager.addGesture(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ package org.gestouch.gestures
|
||||||
{
|
{
|
||||||
if (target)
|
if (target)
|
||||||
{
|
{
|
||||||
_gesturesManager.gestouch_internal::removeGesture(this);
|
_gesturesManager.removeGesture(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -450,7 +450,7 @@ package org.gestouch.gestures
|
||||||
|
|
||||||
if (_state.isEndState)
|
if (_state.isEndState)
|
||||||
{
|
{
|
||||||
_gesturesManager.gestouch_internal::scheduleGestureStateReset(this);
|
_gesturesManager.scheduleGestureStateReset(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: what if RTE happens in event handlers?
|
//TODO: what if RTE happens in event handlers?
|
||||||
|
@ -462,7 +462,7 @@ package org.gestouch.gestures
|
||||||
|
|
||||||
if (_state == GestureState.BEGAN || _state == GestureState.RECOGNIZED)
|
if (_state == GestureState.BEGAN || _state == GestureState.RECOGNIZED)
|
||||||
{
|
{
|
||||||
_gesturesManager.gestouch_internal::onGestureRecognized(this);
|
_gesturesManager.onGestureRecognized(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue