Multitouch Gesture Option in User Preferences #30746

Closed
opened 2012-03-31 18:08:58 +02:00 by Patrick Boelens · 18 comments

This proposed patch has been discussed on the mailing list a bit and adds an "Enable Multitouch Gestures" toggle to the User Preferences. The gestures include magnify, rotate and pan. When turned off, magnify and rotate get discarded, while pan gets turned back into a scroll event for zooming.

Edit: link to mail thread:
http://markmail.org/message/4ddqjolaaxyfzprs

This proposed patch has been discussed on the mailing list a bit and adds an "Enable Multitouch Gestures" toggle to the User Preferences. The gestures include magnify, rotate and pan. When turned off, magnify and rotate get discarded, while pan gets turned back into a scroll event for zooming. Edit: link to mail thread: http://markmail.org/message/4ddqjolaaxyfzprs

Changed status to: 'Open'

Changed status to: 'Open'

%%%Uploaded V2, adding a wm_event directly rather than going through wm_event_add_ghostevent() again when GHOST_kEventTrackpad needs to be turned into a GHOST_kEventWheel.%%%

%%%Uploaded V2, adding a wm_event directly rather than going through wm_event_add_ghostevent() again when GHOST_kEventTrackpad needs to be turned into a GHOST_kEventWheel.%%%

%%%Made a small boo-boo and moved some code around; trackpad-specific code now only gets executed when needed, including the update_tablet_data() call.%%%

%%%Made a small boo-boo and moved some code around; trackpad-specific code now only gets executed when needed, including the update_tablet_data() call.%%%

Added subscriber: @bat3a

Added subscriber: @bat3a

hi
this batch is old and doesn't apply to 2.74, any chance of updating, i tried to do by my self but there are missing places in blender now, thank you.

hi this batch is old and doesn't apply to 2.74, any chance of updating, i tried to do by my self but there are missing places in blender now, thank you.

Woah, this is old! This is actually one of the reasons I still use a modified 2.67 build myself (I have a physical handicap and the current behaviour of pinching and rotating is extremely hard for me to do). At some point the patch stopped working though and I couldn't be bothered to fix it.

Knowing that there is at least some interest in this however, I'll see if I can give it a whirl the coming days. =)

Woah, this *is* old! This is actually one of the reasons I still use a modified 2.67 build myself (I have a physical handicap and the current behaviour of pinching and rotating is extremely hard for me to do). At some point the patch stopped working though and I couldn't be bothered to fix it. Knowing that there is at least some interest in this however, I'll see if I can give it a whirl the coming days. =)
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

@Senshi, yes there is definitely an interest in better multitouch support, the issue is that we used to have a quite poor review support. I'd be happy to see an updated patch (but better use our differential tool now which makes review a bit easier), you can assign me as a reviewer.

@Senshi, yes there is definitely an interest in better multitouch support, the issue is that we used to have a quite poor review support. I'd be happy to see an updated patch (but better use our differential tool now which makes review a bit easier), you can assign me as a reviewer.
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

will this work for tablets too?

will this work for tablets too?

Alright, so I'm looking at the current state of Blender and what this patch was meant to accomplish. The goal of this patch was simply to allow "classic" scene navigation using a multi-touch trackpad. For me this only meant having a two-finger scroll to zoom.

To me, it now seems like this patch would be redundant, as we already have remappable input. The problem there, however, is that two-finger scroll isn't being picked up by Blender when reassigning an operation (at least on OSX 10.9, on a 2009 MacBook Pro).

Would others agree that fixing this might be a better course of action? I feel like adding a toggle just for this switch would now be very much overkill. If so, I would also propose to rename Trackpad Zoom to Trackpad Pinch or Trackpad Magnify in an effort to decouple this gesture name from it's original function a bit.

Please let me know what you think, thanks.

@Blendify The original patch was made with multi-touch trackpads in mind. I don't think it would have affected tablets, especially when going the input route I described above.

Alright, so I'm looking at the current state of Blender and what this patch was meant to accomplish. The goal of this patch was simply to allow "classic" scene navigation using a multi-touch trackpad. For me this only meant having a two-finger scroll to zoom. To me, it now seems like this patch would be redundant, as we already have remappable input. The problem there, however, is that two-finger scroll isn't being picked up by Blender when reassigning an operation (at least on OSX 10.9, on a 2009 MacBook Pro). Would others agree that fixing this might be a better course of action? I feel like adding a toggle just for this switch would now be very much overkill. If so, I would also propose to rename `Trackpad Zoom` to `Trackpad Pinch` or `Trackpad Magnify` in an effort to decouple this gesture name from it's original function a bit. Please let me know what you think, thanks. @Blendify The original patch was made with multi-touch trackpads in mind. I don't think it would have affected tablets, especially when going the input route I described above.

And just after posting this I remembered what the original problem was: Two-finger scroll gets picked up as a pan event, not a scroll one. I would love some input on how to best tackle this, or even how to look at it. I feel like adding a toggle just for this switch would now be overkill, but I'm also not sure how else this could be handled nicely. Perhaps some kind of modifier toggle or secondary Value to treat Pan as either 2D Pan, Horizontal Scroll or Vertical Scroll?

And just after posting this I remembered what the original problem was: Two-finger scroll gets picked up as a pan event, not a scroll one. I would love some input on how to best tackle this, or even how to look at it. I feel like adding a toggle just for this switch would now be overkill, but I'm also not sure how else this could be handled nicely. Perhaps some kind of modifier toggle or secondary `Value` to treat Pan as either `2D Pan`, `Horizontal Scroll` or `Vertical Scroll`?
Member

I think if you could work this patch so that it will pick up input from tablets will be much more helpful to users since the majority of people most likely have a desktop system

I think if you could work this patch so that it will pick up input from tablets will be much more helpful to users since the majority of people most likely have a desktop system
Two-finger scroll gets picked up as a pan event

strange! this works ok with me, when:

  • two-finger scroll it zooms in and out on the trackpad
  • two-finger scroll does nothing on the touch screen
  • pinch in it pan to left and pinch out it pan to right withmultitouch and trackpad.

also i'm ready to help test anything you make man, hope this continues, thank you.

``` Two-finger scroll gets picked up as a pan event ``` strange! this works ok with me, when: - two-finger scroll it zooms in and out on the **trackpad** - two-finger scroll does nothing on the **touch screen** - `pinch in` it `pan to left` and `pinch out` it `pan to right` with**multitouch** and **trackpad**. also i'm ready to help test anything you make man, hope this continues, thank you.

@Blendify I'm sorry, but I'm afraid tablet input is really beyond the scope of this patch (and my abilities; I'm not very familiar with the Blender source).

@bat3a This is beginning to sound like a bigger problem/ bug than I had originally anticipated. Definitely seems like a bug that your trackpad and touch screen provide different results though. Is this on the same machine?

I just removed all trackpad events from my input list and found something odd as well. Adding a new Zoom View event did absolutely nothing, but by modfiying an existing (Keyboard) one I could get a two-finger scroll to be picked up as a pan event, causing the view to zoom in regardless of my scroll direction.

With that said, I'm beginning to think there may be an underlying issue to all of this. I haven't looked at the source yet, but I'm guessing GHOST may be failing to "translate" certain events properly? I'll see if I can give it a look tomorrow, but if anyone knows more or can point me to a specific block of code that would be much appreciated.

@Blendify I'm sorry, but I'm afraid tablet input is really beyond the scope of this patch (and my abilities; I'm not very familiar with the Blender source). @bat3a This is beginning to sound like a bigger problem/ bug than I had originally anticipated. Definitely seems like a bug that your trackpad and touch screen provide different results though. Is this on the same machine? I just removed all trackpad events from my input list and found something odd as well. Adding a new `Zoom View` event did absolutely nothing, but by modfiying an existing (Keyboard) one I could get a two-finger scroll to be picked up as a pan event, causing the view to zoom **in** regardless of my scroll direction. With that said, I'm beginning to think there may be an underlying issue to all of this. I haven't looked at the source yet, but I'm guessing GHOST may be failing to "translate" certain events properly? I'll see if I can give it a look tomorrow, but if anyone knows more or can point me to a specific block of code that would be much appreciated.
 Is this on the same machine?

yes, it is a [surface pro 3 ]] with 10 finger touch, and [ http:*www.microsoft.com/surface/en-us/accessories/surface-pro-typecover | type cover trackpad.

also deleting the view pan with Ctrl + Wheel Up and Ctrl + Wheel Down shortcuts stop's the pan left and right when pinching.

other info that may help: windows 8.1 pro x64, 2.74 tag compiled with mingw x64.

``` Is this on the same machine? ``` yes, it is a [surface pro 3 ]] with 10 finger touch, and [[ http:*www.microsoft.com/surface/en-us/accessories/surface-pro-typecover | type cover ](https:*www.microsoft.com/surface/en-us/products/surface-pro-3) trackpad. also deleting the `view pan` with `Ctrl + Wheel Up` and `Ctrl + Wheel Down` shortcuts stop's the pan left and right when pinching. other info that may help: windows 8.1 pro x64, 2.74 tag compiled with mingw x64.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Patrick Boelens self-assigned this 2016-03-01 04:09:10 +01:00

I just realized I still had this task open. I'm pretty sure everything works as intended and has been for a while now. Seperate bug reports may still follow if I ever encounter similar weirdness again in the future, but I don't believe this patch serves any public purpose anymore. Closing for now.

I just realized I still had this task open. I'm pretty sure everything works as intended and has been for a while now. Seperate bug reports may still follow if I ever encounter similar weirdness again in the future, but I don't believe this patch serves any public purpose anymore. Closing for now.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#30746
No description provided.