3 * libneuro, a light weight abstraction of high or lower libraries
4 * and toolkit for applications.
5 * Copyright (C) 2005-2006 Nicholas Niro, Robert Lemay
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 #include "neuro_engine.h"
35 extern void Neuro_AddPressedKeyEvent(u32 keysym
, void (*callback
)());
38 extern void Neuro_AddReleasedKeyEvent(u32 keysym
, void (*callback
)());
42 extern void Neuro_AddPressedMouseEvent(u32 button
, void (*callback
)(int x
, int y
));
45 extern void Neuro_AddReleasedMouseEvent(u32 button
, void (*callback
)(int x
, int y
));
48 /* same as the normal pressedkeyevent but also
49 * sends the key number as the first argument of
50 * the callback so one callback can be used for
51 * more than one key at once.
53 extern void Neuro_AddPressedMultiKeyEvent(u32 keysym
, void (*callback
)(u32 keysym
));
55 extern void Neuro_AddReleasedMultiKeyEvent(u32 keysym
, void (*callback
)(u32 keysym
));
58 extern void Neuro_CleanKeyboard();
61 extern void Neuro_CleanMouse();
63 /* puts the mouse coordinates into x and y */
64 extern void Neuro_GetMousePos(int *x
, int *y
);
68 extern void Events_Poll(void);
69 extern int Events_Init(void);
70 extern void Events_Clean(void);
77 #endif /* __EVENTS_H */