Commit 5ccf664c authored by w4t's avatar w4t

ios only listen to 1st finger

parent b3f4e117
......@@ -38,8 +38,11 @@ namespace ofxImGui
//--------------------------------------------------------------
void BaseEngine::onMousePressed(ofMouseEventArgs& event)
{
if (event.button >= 0 && event.button < 5)
{
#ifdef TARGET_OF_IOS
if (event.button == 0){ //on ios, only 1st finger reaches imgui
#else
if (event.button >= 0 && event.button < 5){
#endif
mousePressed[event.button] = true;
}
}
......@@ -47,8 +50,11 @@ namespace ofxImGui
//--------------------------------------------------------------
void BaseEngine::onMouseReleased(ofMouseEventArgs& event)
{
if (event.button >= 0 && event.button < 5)
{
#ifdef TARGET_OF_IOS
if (event.button == 0){ //on ios, only 1st finger reaches imgui
#else
if (event.button >= 0 && event.button < 5){
#endif
mousePressed[event.button] = false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment