summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/src/mouse.hcc
diff options
context:
space:
mode:
Diffstat (limited to 'Graphic_Equalizer/src/mouse.hcc')
-rw-r--r--Graphic_Equalizer/src/mouse.hcc18
1 files changed, 5 insertions, 13 deletions
diff --git a/Graphic_Equalizer/src/mouse.hcc b/Graphic_Equalizer/src/mouse.hcc
index 7764ed6..8db9c51 100644
--- a/Graphic_Equalizer/src/mouse.hcc
+++ b/Graphic_Equalizer/src/mouse.hcc
@@ -30,14 +30,6 @@
-/*
- * Channel to notify others when new mousedata is available. If so
- * Then mousedata struct is updated with shared data.
- */
-chan unsigned 1 mousedata_notification;
-
-
-
/*! \fn void mouse_main(mousedata_t *mousedata);
* \brief Main mousedriver. This function never returns! It calls the
* main mousehandler and returns the States and coordinates
@@ -48,7 +40,7 @@ chan unsigned 1 mousedata_notification;
* \return Never Returns.
* \retval void
*/
-void mouse_main(mousedata_t *mousedata)
+macro proc mouse_main(mousedata)
{
unsigned 14 touch_sampler;
unsigned 10 x, oldx;
@@ -97,10 +89,10 @@ void mouse_main(mousedata_t *mousedata)
* Set the new as previous values for the next run.
*/
if ((oldmousestate != mousestate) || (oldx != x) || (oldy != y)) {
- mousedata->x = x;
- mousedata->y = y;
- mousedata->state = mousestate;
- mousedata_notification ! MOUSE_UPDATED;
+ mousedata.x = x;
+ mousedata.y = y;
+ mousedata.state = mousestate;
+ mousedata.status = MOUSE_UPDATED;
oldx = x;
oldy = y;
oldmousestate = mousestate;