revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-hosted / hidd / x11 / x11_support.c
blob79b01b614d81f69109a15fde61791e719437355f
1 /*
2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: X11 gfx HIDD for AROS.
6 Lang: English.
7 */
9 #include "x11_debug.h"
12 #include <proto/oop.h>
14 #include "x11_types.h"
15 #include "x11.h"
17 /****************************************************************************************/
19 VOID Hidd_Mouse_X11_HandleEvent(OOP_Object *o, XEvent *event)
21 struct pHidd_Mouse_X11_HandleEvent msg;
22 static OOP_MethodID mid;
24 if (!mid)
25 mid = OOP_GetMethodID(IID_Hidd_Mouse_X11, moHidd_Mouse_X11_HandleEvent);
27 msg.mID = mid;
28 msg.event = event;
30 OOP_DoMethod(o, (OOP_Msg) &msg);
33 /****************************************************************************************/
35 VOID Hidd_Kbd_X11_HandleEvent(OOP_Object *o, XEvent *event)
37 struct pHidd_Kbd_X11_HandleEvent msg;
38 static OOP_MethodID mid;
40 if (!mid)
41 mid = OOP_GetMethodID(IID_Hidd_Kbd_X11, moHidd_Kbd_X11_HandleEvent);
43 msg.mID = mid;
44 msg.event = event;
46 OOP_DoMethod(o, (OOP_Msg) &msg);
49 /****************************************************************************************/