[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (f896e7ab766bc8754c8a2f9c28da7d78944b26b6)



The branch, master has been updated
       via  f896e7ab766bc8754c8a2f9c28da7d78944b26b6 (commit)
      from  3108a3ffe3dad4cc50372b672ed668a739bbddf5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/gpcb-menu.res.in          |    7 +++++++
 src/hid/common/hid_resource.c |    4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit f896e7ab766bc8754c8a2f9c28da7d78944b26b6
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Add support for mice / touchpads with a left/right scroll-wheel
    
    Tested-by: Dave McGuire <mcguire@xxxxxxxxxxxxx>

:100644 100644 7e63811... 7dee9b9... M	src/gpcb-menu.res.in
:100644 100644 842a058... a98dc46... M	src/hid/common/hid_resource.c

=========
 Changes
=========

commit f896e7ab766bc8754c8a2f9c28da7d78944b26b6
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    Add support for mice / touchpads with a left/right scroll-wheel
    
    Tested-by: Dave McGuire <mcguire@xxxxxxxxxxxxx>

diff --git a/src/gpcb-menu.res.in b/src/gpcb-menu.res.in
index 7e63811..7dee9b9 100644
--- a/src/gpcb-menu.res.in
+++ b/src/gpcb-menu.res.in
@@ -37,6 +37,13 @@ Mouse =
 # If you want zoom to center, do this instead.
   #Up = { {Zoom(0.8) Center()} }
   #Down = { {Zoom(1.25) Center()} }
+
+  scroll-left = {
+    Scroll(left)
+  }
+  scroll-right = {
+    Scroll(right)
+  }
 }
 
 MainMenu =
diff --git a/src/hid/common/hid_resource.c b/src/hid/common/hid_resource.c
index 842a058..a98dc46 100644
--- a/src/hid/common/hid_resource.c
+++ b/src/hid/common/hid_resource.c
@@ -71,6 +71,10 @@ button_name_to_num (const char *name)
     return 4;
   else if (strcasecmp (name, "down") == 0)
     return 5;
+  else if (strcasecmp (name, "scroll-left") == 0)
+    return 6;
+  else if (strcasecmp (name, "scroll-right") == 0)
+    return 7;
   else
     return atoi (name);
 }




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs