Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

no longer sending touch events to osx and no mouse events to ios

  • Loading branch information...
commit 2335f879f94d8594c50c5dc8b32984cc50a76f8f 1 parent 9d9cdd9
authored

Showing 1 changed file with 7 additions and 5 deletions. Show diff stats Hide diff stats

  1. +7 5 src/ofxBlud.mm
12 src/ofxBlud.mm
@@ -105,21 +105,23 @@ int luaErrorHandler(lua_State *L)
105 105 printf("%s\n", lua_tostring(luaVM, -1));
106 106 }
107 107
  108 +
  109 + ofAddListener(ofEvents().keyPressed, this, &ofxBlud::keyPressed);
  110 + ofAddListener(ofEvents().keyReleased, this, &ofxBlud::keyReleased);
  111 +
108 112 // touch events
  113 +#if defined TARGET_OF_IPHONE
109 114 ofAddListener(ofEvents().touchDown, this, &ofxBlud::touchDown);
110 115 ofAddListener(ofEvents().touchUp, this, &ofxBlud::touchUp);
111 116 ofAddListener(ofEvents().touchMoved, this, &ofxBlud::touchMoved);
112 117 ofAddListener(ofEvents().touchDoubleTap, this, &ofxBlud::touchDoubleTap);
113   -
114   - ofAddListener(ofEvents().keyPressed, this, &ofxBlud::keyPressed);
115   - ofAddListener(ofEvents().keyReleased, this, &ofxBlud::keyReleased);
116   -
  118 +#else
117 119 // mouse events
118 120 ofAddListener(ofEvents().mousePressed, this, &ofxBlud::mousePressed);
119 121 ofAddListener(ofEvents().mouseReleased, this, &ofxBlud::mouseReleased);
120 122 ofAddListener(ofEvents().mouseMoved, this, &ofxBlud::mouseMoved);
121 123 ofAddListener(ofEvents().mouseDragged, this, &ofxBlud::mouseDragged);
122   -
  124 +#endif
123 125 // sys events
124 126 ofAddListener(ofEvents().draw, this, &ofxBlud::draw);
125 127 ofAddListener(ofEvents().update, this, &ofxBlud::update);

0 comments on commit 2335f87

Please sign in to comment.
Something went wrong with that request. Please try again.