Skip to content

Commit

Permalink
add multitouch settings to iOS template (#6210)
Browse files Browse the repository at this point in the history
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 bd6eb1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/templates/ios/src/main.mm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "ofApp.h"

int main() {

// here are the most commonly used iOS window settings.
//------------------------------------------------------
ofiOSWindowSettings settings;
Expand All @@ -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.