Skip to content

Commit

Permalink
Enable gestures on multi-touch touchpads (closes #203)
Browse files Browse the repository at this point in the history
  • Loading branch information
piernov committed Mar 20, 2022
1 parent 9c36385 commit 4430e5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openboardview/main_opengl.cpp
Expand Up @@ -223,6 +223,9 @@ int main(int argc, char **argv) {
return -1;
}

// Enable touch gestures on multi-touch touchpads
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1");

// Load the configuration file
configDir = get_user_dir(UserDir::Config);
if (!configDir.empty()) app.obvconfig.Load(configDir + "obv.conf", true);
Expand Down

0 comments on commit 4430e5c

Please sign in to comment.