From ae0d84721d58731feee4888b67e7a1e55cd318b2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 4 Jun 2003 22:46:17 +0000 Subject: add a leftHanded option for mouse bindings, reverses the left/right keywords --- plugins/mouse/mouse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/mouse/mouse.c') diff --git a/plugins/mouse/mouse.c b/plugins/mouse/mouse.c index a2b3d7e0..1afc43e6 100644 --- a/plugins/mouse/mouse.c +++ b/plugins/mouse/mouse.c @@ -13,7 +13,7 @@ static int threshold; static int dclicktime; - +gboolean mouse_lefthand; /* @@ -36,6 +36,8 @@ static void parse_xml(xmlDocPtr doc, xmlNodePtr node, void *d) threshold = parse_int(doc, n); if ((n = parse_find_node("doubleClickTime", node))) dclicktime = parse_int(doc, n); + if ((n = parse_find_node("leftHanded", node))) + mouse_lefthand = parse_bool(doc, n); n = parse_find_node("context", node); while (n) { @@ -99,6 +101,7 @@ void plugin_setup_config() { threshold = 3; dclicktime = 200; + mouse_lefthand = FALSE; parse_register("mouse", parse_xml, NULL); } -- cgit v1.2.3