Page MenuHome

Horizontal scroll-wheel / trackpad support
Closed, ArchivedPublicPATCH

Description

This patch adds a extra member to the GHOST_TEventWheelData struct so that horizontal scroll wheel events can be sent from GHOST. The Cocoa, Win32 and X11 parts of GHOST have been updated to pick up and forward horizontal scroll events.

Windowmanager has WHEELEFTMOUSE and WHEELRIGHTMOUSE event types which are raised form the equivalent GHOST events.

scroll-simple2-keymap.patch changes the default key mappings for 2D views. Unmodified scrolling results in panning, shift is used to scroll.

This patch compiles on OS X 10.6, Windows XP and Ubuntu 9.10. I have only been able to test the functionality on OS X as I do not have appropriate hardware to test for Win32 and X11.

Event Timeline

Damien, just curious if you have time to review... I'm just going through our patch tracker backlog hoping we can reduce it a bit :)

James, now that full trackpad gestures are handled in Blender, do you think handling this horizontal mouse wheel is still useful ?
Mouse handling is quite comprehensive and intuitive now, so is there a need to add horiz wheel (and for what use ?)

Obviously OS X is covered now. I know that there are some mice about that have a horizontal scroll when the wheel is tilted, and also some trackpad drivers under X11 and Windows send horizontal scroll events. My understanding is that in X11 and Windows, the event is simply a button press on button 4 and 5 (or something like that) so they could probably just be mapped to what ever the user wanted (maybe with a little tweaking of the operators). So I'd say this is done now.

Damien Plisson (damien78) changed the task status from Unknown Status to Unknown Status.Feb 3 2010, 9:25 AM