Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
ecore_x_events.c
Log Message:
lets make buttons 6 and 7 be another mouse wheel goign in another direction -
eh? :)
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_events.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -3 -r1.68 -r1.69
--- ecore_x_events.c 12 Jul 2005 15:27:46 -0000 1.68
+++ ecore_x_events.c 30 Jul 2005 11:43:17 -0000 1.69
@@ -276,7 +276,7 @@
int did_triple = 0;
int i;
- if ((xevent->xbutton.button > 3) && (xevent->xbutton.button < 6))
+ if ((xevent->xbutton.button > 3) && (xevent->xbutton.button < 8))
{
Ecore_X_Event_Mouse_Wheel *e;
@@ -288,12 +288,30 @@
e->modifiers = 0;
e->direction = 0;
e->z = 0;
- if (xevent->xbutton.button == 4) e->z = -1;
- else if (xevent->xbutton.button == 5) e->z = 1;
+ if (xevent->xbutton.button == 4)
+ {
+ e->direction = 0;
+ e->z = -1;
+ }
+ else if (xevent->xbutton.button == 5)
+ {
+ e->direction = 0;
+ e->z = 1;
+ }
+ else if (xevent->xbutton.button == 6)
+ {
+ e->direction = 1;
+ e->z = -1;
+ }
+ else if (xevent->xbutton.button == 7)
+ {
+ e->direction = 1;
+ e->z = 1;
+ }
e->x = xevent->xbutton.x;
e->y = xevent->xbutton.y;
e->root.x = xevent->xbutton.x_root;
- e->root.y = xevent->xbutton.y_root;
+ e->root.y = xevent->xbutton.y_root;
if (xevent->xbutton.subwindow)
e->win = xevent->xbutton.subwindow;
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs