[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21246] branches/blender2.5/blender/source /blender/editors: This commit adds Alt-LMB as an alternative to MMB, and CTRL-ALT-LMB as an alternative to CTRL-MMB so that laptop users can use 2 .5

Matt Ebb matt at mke3.net
Tue Jun 30 00:24:55 CEST 2009


Well you don't want to make it completely equivalent, that means that  
you're talking away mouse combinations from people who have 3 button  
mice. For example this commit looks like it will prevent loop  
selection when using LMB select, which is not nice either.

I'm not convinced the way in this commit is the right way to do it  
either, but it needs to be configurable, so we can present a 'laptop  
config' and a '3 button mouse config' etc. etc.

Matt


On 30/06/2009, at 7:56 AM, Martin Poirier wrote:

>
> It shouldn't be done at that level, it means that all operator using  
> MMB needs to be remapped.
>
> It should be done at the event manager level, IMHO.
>
> Martin
>
> --- On Mon, 6/29/09, Tom Musgrove <LetterRip at gmail.com> wrote:
>
>> From: Tom Musgrove <LetterRip at gmail.com>
>> Subject: [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21246]  
>> branches/blender2.5/blender/source /blender/editors: This commit  
>> adds Alt-LMB as an alternative to MMB, and CTRL-ALT-LMB as an  
>> alternative to CTRL-MMB so that laptop users can use 2 .5
>> To: bf-blender-cvs at blender.org
>> Received: Monday, June 29, 2009, 5:07 PM
>> Revision: 21246
>>           http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21246
>> Author:   letterrip
>> Date:     2009-06-29 23:07:33 +0200
>> (Mon, 29 Jun 2009)
>>
>> Log Message:
>> -----------
>> This commit adds Alt-LMB as an alternative to MMB, and
>> CTRL-ALT-LMB as an alternative to CTRL-MMB so that laptop
>> users can use 2.5
>>
>> Modified Paths:
>> --------------
>>
>> branches/blender2.5/blender/source/blender/editors/interface/ 
>> view2d_ops.c
>>
>> branches/blender2.5/blender/source/blender/editors/space_image/ 
>> space_image.c
>>
>> branches/blender2.5/blender/source/blender/editors/space_text/ 
>> space_text.c
>>
>> branches/blender2.5/blender/source/blender/editors/space_view3d/ 
>> view3d_ops.c
>>
>> Modified:
>> branches/blender2.5/blender/source/blender/editors/interface/ 
>> view2d_ops.c
>> ===================================================================
>> ---
>> branches/blender2.5/blender/source/blender/editors/interface/ 
>> view2d_ops.c
>> 2009-06-29 20:47:42 UTC (rev 21245)
>> +++
>> branches/blender2.5/blender/source/blender/editors/interface/ 
>> view2d_ops.c
>> 2009-06-29 21:07:33 UTC (rev 21246)
>> @@ -1356,7 +1356,8 @@
>>     /* pan/scroll */
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_pan", MIDDLEMOUSE, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_pan", MIDDLEMOUSE, KM_PRESS, KM_SHIFT, 0);
>> -
>> +    WM_keymap_add_item(keymap,
>> "VIEW2D_OT_pan", LEFTMOUSE, KM_PRESS, KM_ALT,
>> 0);
>> +
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_scroll_right", WHEELDOWNMOUSE, KM_PRESS, KM_CTRL,
>> 0);
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_scroll_left", WHEELUPMOUSE, KM_PRESS, KM_CTRL,
>> 0);
>>
>> @@ -1379,6 +1380,7 @@
>>
>>     /* zoom - drag */
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_zoom", MIDDLEMOUSE, KM_PRESS, KM_CTRL, 0);
>> +    WM_keymap_add_item(keymap,
>> "VIEW2D_OT_zoom", LEFTMOUSE, KM_PRESS, KM_ALT|KM_CTRL, 0);
>> /* no MMB on laptops */
>>
>>     /* borderzoom - drag */
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_zoom_border", BKEY, KM_PRESS, KM_SHIFT, 0);
>> @@ -1389,9 +1391,11 @@
>>     /* Alternative keymap for buttons
>> listview */
>>     keymap= WM_keymap_listbase(wm, "View2D
>> Buttons List", 0, 0);
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_pan", MIDDLEMOUSE, KM_PRESS, 0, 0);
>> +    WM_keymap_add_item(keymap,
>> "VIEW2D_OT_pan", LEFTMOUSE, KM_PRESS, KM_ALT, 0); /* no MMB
>> on laptops */
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_scroll_down", WHEELDOWNMOUSE, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_scroll_up", WHEELUPMOUSE, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_zoom", MIDDLEMOUSE, KM_PRESS, KM_CTRL, 0);
>> +    WM_keymap_add_item(keymap,
>> "VIEW2D_OT_zoom", LEFTMOUSE, KM_PRESS, KM_ALT|KM_CTRL, 0);
>> /* no MMB on laptops */
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_zoom_out", PADMINUS, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_zoom_in", PADPLUSKEY, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "VIEW2D_OT_reset", HOMEKEY, KM_PRESS, 0, 0);
>>
>> Modified:
>> branches/blender2.5/blender/source/blender/editors/space_image/ 
>> space_image.c
>> ===================================================================
>> ---
>> branches/blender2.5/blender/source/blender/editors/space_image/ 
>> space_image.c
>> 2009-06-29 20:47:42 UTC (rev 21245)
>> +++
>> branches/blender2.5/blender/source/blender/editors/space_image/ 
>> space_image.c
>> 2009-06-29 21:07:33 UTC (rev 21246)
>> @@ -216,12 +216,14 @@
>>     WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_all", HOMEKEY, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_selected", PADPERIOD, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_pan", MIDDLEMOUSE, KM_PRESS, 0, 0);
>> +    WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_pan", LEFTMOUSE, KM_PRESS, KM_ALT, 0); /* no
>> MMB on laptops */
>>
>>     WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_zoom_in", WHEELINMOUSE, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_zoom_out", WHEELOUTMOUSE, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_zoom_in", PADPLUSKEY, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_zoom_out", PADMINUS, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_zoom", MIDDLEMOUSE, KM_PRESS, KM_CTRL, 0);
>> +    WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_zoom", LEFTMOUSE, KM_PRESS, KM_CTRL|KM_ALT,
>> 0); /* no MMB on laptops */
>>
>>
>> RNA_float_set(WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_zoom_ratio", PAD8, KM_PRESS, KM_SHIFT,
>> 0)->ptr, "ratio", 8.0f);
>>
>> RNA_float_set(WM_keymap_add_item(keymap,
>> "IMAGE_OT_view_zoom_ratio", PAD4, KM_PRESS, KM_SHIFT,
>> 0)->ptr, "ratio", 4.0f);
>>
>> Modified:
>> branches/blender2.5/blender/source/blender/editors/space_text/ 
>> space_text.c
>> ===================================================================
>> ---
>> branches/blender2.5/blender/source/blender/editors/space_text/ 
>> space_text.c
>> 2009-06-29 20:47:42 UTC (rev 21245)
>> +++
>> branches/blender2.5/blender/source/blender/editors/space_text/ 
>> space_text.c
>> 2009-06-29 21:07:33 UTC (rev 21246)
>> @@ -276,6 +276,8 @@
>>     WM_keymap_add_item(keymap,
>> "TEXT_OT_overwrite_toggle", INSERTKEY, KM_PRESS, 0, 0);
>>
>>     WM_keymap_add_item(keymap,
>> "TEXT_OT_scroll", MIDDLEMOUSE, KM_PRESS, 0, 0);
>> +    WM_keymap_add_item(keymap,
>> "TEXT_OT_scroll", LEFTMOUSE, KM_PRESS, KM_ALT, 0); /* no MMB
>> on laptops */
>> +
>>     WM_keymap_add_item(keymap,
>> "TEXT_OT_scroll_bar", LEFTMOUSE, KM_PRESS, 0, 0);
>>     WM_keymap_add_item(keymap,
>> "TEXT_OT_cursor_set", LEFTMOUSE, KM_PRESS, 0, 0);
>>
>> RNA_boolean_set(WM_keymap_add_item(keymap,
>> "TEXT_OT_cursor_set", LEFTMOUSE, KM_PRESS, KM_SHIFT,
>> 0)->ptr, "select", 1);
>>
>> Modified:
>> branches/blender2.5/blender/source/blender/editors/space_view3d/ 
>> view3d_ops.c
>> ===================================================================
>> ---
>> branches/blender2.5/blender/source/blender/editors/space_view3d/ 
>> view3d_ops.c
>> 2009-06-29 20:47:42 UTC (rev 21245)
>> +++
>> branches/blender2.5/blender/source/blender/editors/space_view3d/ 
>> view3d_ops.c
>> 2009-06-29 21:07:33 UTC (rev 21246)
>> @@ -139,8 +139,14 @@
>>     WM_keymap_verify_item(keymap,
>> "VIEW3D_OT_cursor3d", ACTIONMOUSE, KM_PRESS, 0, 0);
>>
>>     WM_keymap_verify_item(keymap,
>> "VIEW3D_OT_viewrotate", MIDDLEMOUSE, KM_PRESS, 0, 0);
>> +    WM_keymap_add_item(keymap,
>> "VIEW3D_OT_viewrotate", LEFTMOUSE, KM_PRESS, KM_ALT, 0); /*
>> no MMB on laptops */
>> +
>>     WM_keymap_verify_item(keymap,
>> "VIEW3D_OT_viewmove", MIDDLEMOUSE, KM_PRESS, KM_SHIFT, 0);
>> +    WM_keymap_add_item(keymap,
>> "VIEW3D_OT_viewmove", LEFTMOUSE, KM_PRESS, KM_SHIFT|KM_ALT,
>> 0); /* no MMB on laptops */
>> +
>>     WM_keymap_verify_item(keymap,
>> "VIEW3D_OT_zoom", MIDDLEMOUSE, KM_PRESS, KM_CTRL, 0);
>> +    WM_keymap_add_item(keymap,
>> "VIEW3D_OT_zoom", LEFTMOUSE, KM_PRESS, KM_CTRL|KM_ALT, 0);
>> /* no MMB on laptops */
>> +
>>     WM_keymap_verify_item(keymap,
>> "VIEW3D_OT_viewcenter", PADPERIOD, KM_PRESS, 0, 0);
>>
>>     WM_keymap_verify_item(keymap,
>> "VIEW3D_OT_smoothview", TIMER1, KM_ANY, KM_ANY, 0);
>>
>>
>> _______________________________________________
>> Bf-blender-cvs mailing list
>> Bf-blender-cvs at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>>
>
>
>       
> __________________________________________________________________
> Looking for the perfect gift? Give the gift of Flickr!
>
> http://www.flickr.com/gift/
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list