]> Dogcows Code - chaz/openbox/commitdiff
add aliases for mouse buttons
authorDana Jansens <danakj@orodu.net>
Sat, 11 Jan 2003 20:48:52 +0000 (20:48 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 11 Jan 2003 20:48:52 +0000 (20:48 +0000)
src/bindings.cc

index 4a2e7db8e08e31f22115d71807fb1452a6e68996..a8dfaed0bc8c5efa4512c08406108b5e3977e6f9 100644 (file)
@@ -23,15 +23,15 @@ namespace ob {
 
 static bool buttonvalue(const std::string &button, unsigned int *val)
 {
-  if (button == "1" || button == "Button1") {
+  if (button == "Left" || button == "1" || button == "Button1") {
     *val |= Button1;
-  } else if (button == "2" || button == "Button2") {
+  } else if (button == "Middle" || button == "2" || button == "Button2") {
     *val |= Button2;
-  } else if (button == "3" || button == "Button3") {
+  } else if (button == "Right" || button == "3" || button == "Button3") {
     *val |= Button3;
-  } else if (button == "4" || button == "Button4") {
+  } else if (button == "Up" || button == "4" || button == "Button4") {
     *val |= Button4;
-  } else if (button == "5" || button == "Button5") {
+  } else if (button == "Down" || button == "5" || button == "Button5") {
     *val |= Button5;
   } else
     return false;
This page took 0.028194 seconds and 4 git commands to generate.