// openFrameworks calls this function once before the app starts void HelloMultitouch::setup(){ if (!GestureWorks::Instance()->LoadGestureWorks(L"GestureWorksCore32.dll")){ MessageBox(NULL, L"Unable to load GestureWorksCore DLL", L"Error", 0); return; } // Initialize with (0,0) so GestureWorks will automatically detect our screen resolution GestureWorks::Instance()->InitializeGestureWorks(0, 0); // Register our window with GestureWorks for touch input. We could also do this with an HWND. // Alternatively, we could use some other method of getting touch input and feed it to GestureWorks via // the addEvent method. if (!GestureWorks::Instance()->RegisterWindowForTouchByName(std::wstring(window_title.begin(), window_title.end()))){ MessageBox(NULL, L"Unable to register window for touch", L"Error", 0); return; } }