]> Pileus Git - ~andy/gtk/blob - gdk/quartz/gdkinput-old.c
ad636ca5faa201303798f540caf5c01dd9769be3
[~andy/gtk] / gdk / quartz / gdkinput-old.c
1 /* gdkinput.c
2  *
3  * Copyright (C) 2005 Imendio AB
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #include "config.h"
22
23 #include "gdkinput.h"
24
25 GType
26 gdk_device_get_type (void)
27 {
28   static GType object_type = 0;
29
30   if (!object_type)
31     {
32       static const GTypeInfo object_info =
33       {
34         sizeof (GdkDeviceClass),
35         (GBaseInitFunc) NULL,
36         (GBaseFinalizeFunc) NULL,
37         (GClassInitFunc) NULL,
38         NULL,           /* class_finalize */
39         NULL,           /* class_data */
40         sizeof (GdkDevicePrivate),
41         0,              /* n_preallocs */
42         (GInstanceInitFunc) NULL,
43       };
44       
45       object_type = g_type_register_static (G_TYPE_OBJECT,
46                                             "GdkDevice",
47                                             &object_info, 0);
48     }
49   
50   return object_type;
51 }
52
53 void
54 gdk_device_set_key (GdkDevice      *device,
55                     guint           index,
56                     guint           keyval,
57                     GdkModifierType modifiers)
58 {
59   /* FIXME: Implement */
60 }
61
62 gboolean
63 gdk_device_get_axis (GdkDevice *device, gdouble *axes, GdkAxisUse use, gdouble *value)
64 {
65   /* FIXME: Implement */
66   return FALSE;
67 }
68