aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_mouse.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2007-03-20 01:08:38 +0000
committerChristopher Michael <cpmichael1@comcast.net>2007-03-20 01:08:38 +0000
commitfb9c90a631a7fa59b7f43be9117ee18dd0710934 (patch)
tree987dd669375ceb3f107ab20f6d32052604158320 /src/bin/e_mouse.c
parentRavenlock's ibox patch for icons always showing all icons when restart. (diff)
downloadenlightenment-fb9c90a631a7fa59b7f43be9117ee18dd0710934.tar.gz
Part 2 of Ravenlock's mouse acceleration patch. This adds a config dialog
for setting the mouse accel threshold and the necessary mouse_init calls to setup accel when E launches. SVN revision: 28822
Diffstat (limited to 'src/bin/e_mouse.c')
-rw-r--r--src/bin/e_mouse.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bin/e_mouse.c b/src/bin/e_mouse.c
new file mode 100644
index 000000000..a10e157b7
--- /dev/null
+++ b/src/bin/e_mouse.c
@@ -0,0 +1,15 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+#include "e.h"
+
+EAPI int
+e_mouse_init(void)
+{
+ if (!ecore_x_pointer_control_set(e_config->mouse_accel_numerator,
+ e_config->mouse_accel_denominator,
+ e_config->mouse_accel_threshold))
+ return 0;
+
+ return 1;
+}