Permalink
Browse files

add multitouch settings to iOS template (#6210)

Multitouch seems broken on iOS - but it just had to be enabled from the main.mm file. What made it confusing was that settings.enableMultiTouch was not present in the template to begin with, so just added it! Makes life slightly easier :)

#changelog #ios
  • Loading branch information...
sourya-sen authored and arturoc committed Jan 10, 2019
1 parent 0bf04a4 commit bd6eb1dcd35fe246ebf1314d81a86ff46e465494
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/templates/ios/src/main.mm
@@ -1,7 +1,7 @@
#include "ofApp.h"

int main() {

// here are the most commonly used iOS window settings.
//------------------------------------------------------
ofiOSWindowSettings settings;
@@ -17,7 +17,8 @@ int main() {
settings.depthType = ofxiOSRendererDepthFormat::DEPTH_NONE; // depth format (16/24) if depth enabled
settings.stencilType = ofxiOSRendererStencilFormat::STENCIL_NONE; // stencil mode
settings.windowMode = OF_FULLSCREEN;
settings.enableMultiTouch = false; // enables multitouch support and updates touch.id etc.
ofCreateWindow(settings);

return ofRunApp(new ofApp);
}

0 comments on commit bd6eb1d

Please sign in to comment.