summaryrefslogtreecommitdiff
path: root/src/bindings.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-11 20:48:52 +0000
committerDana Jansens <danakj@orodu.net>2003-01-11 20:48:52 +0000
commit2a6c730f02fcd127cc831297eacca6f5a80fb44c (patch)
tree5702f1c4df4e8802e247b9750b1e0decc17fb188 /src/bindings.cc
parentcc86c196a2c2793403396bb1d2335b63e1413067 (diff)
add aliases for mouse buttons
Diffstat (limited to 'src/bindings.cc')
-rw-r--r--src/bindings.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bindings.cc b/src/bindings.cc
index 4a2e7db8..a8dfaed0 100644
--- a/src/bindings.cc
+++ b/src/bindings.cc
@@ -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;