1 /*****************************************************************************
2 * This file is part of gfxprim library. *
4 * Gfxprim is free software; you can redistribute it and/or *
5 * modify it under the terms of the GNU Lesser General Public *
6 * License as published by the Free Software Foundation; either *
7 * version 2.1 of the License, or (at your option) any later version. *
9 * Gfxprim is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12 * Lesser General Public License for more details. *
14 * You should have received a copy of the GNU Lesser General Public *
15 * License along with gfxprim; if not, write to the Free Software *
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
17 * Boston, MA 02110-1301 USA *
19 * Copyright (C) 2009-2010 Jiri "BlueBear" Dluhos *
20 * <jiri.bluebear.dluhos@gmail.com> *
22 * Copyright (C) 2009-2010 Cyril Hrubis <metan@ucw.cz> *
24 *****************************************************************************/
28 This interface is modeled after linux input event system.
37 typedef enum GP_EventType
{
38 GP_EVENT_KEY
= 0x01, /* key up/down event */
39 GP_EVENT_REL
= 0x02, /* relative XY event */
40 GP_EVENT_ABS
= 0x03, /* absolute XY value */
45 typedef enum GP_EventKeyType
{
50 typedef enum GP_EventRelType
{
53 GP_REL_BTN_DOWN
= 0x02,
57 typedef enum GP_EventAbsType
{
60 GP_ABS_PEN_DOWN
= 0x02,
65 typedef struct GP_EventAbs
{
78 typedef struct GP_EventRel
{
85 /* relative movement */
94 typedef struct GP_EventKey
{
103 typedef union GP_EventPtr
{
109 typedef struct GP_Time
{
114 typedef struct GP_Event
{
117 /* GP_Event???Type */
125 #endif /* GP_EVENT_H */