diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-04-03 10:54:25 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-04-03 11:37:41 +0200 |
commit | ddd24761fd698f35671a0f649539a4b11705e9fa (patch) | |
tree | 4ef7b5caf1bcba2c9866e12b7c2d922e7a5fd05f /gdk/gdkdevice.c | |
parent | 2697ac5770d3fc81e857b0f8bed9545d8407398d (diff) | |
download | gtk+-ddd24761fd698f35671a0f649539a4b11705e9fa.tar.gz |
Add _gdk_device_get_axis_info
This is needed for the win32 master/slave handling code.
Diffstat (limited to 'gdk/gdkdevice.c')
-rw-r--r-- | gdk/gdkdevice.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c index cd8bda2494..0abfffea93 100644 --- a/gdk/gdkdevice.c +++ b/gdk/gdkdevice.c @@ -1370,6 +1370,29 @@ _gdk_device_add_axis (GdkDevice *device, } void +_gdk_device_get_axis_info (GdkDevice *device, + guint index_, + GdkAtom *label_atom, + GdkAxisUse *use, + gdouble *min_value, + gdouble *max_value, + gdouble *resolution) +{ + GdkAxisInfo *info; + + g_return_if_fail (GDK_IS_DEVICE (device)); + g_return_if_fail (index_ < device->axes->len); + + info = &g_array_index (device->axes, GdkAxisInfo, index_); + + *label_atom = info->label; + *use = info->use; + *min_value = info->min_value; + *max_value = info->max_value; + *resolution = info->resolution; +} + +void _gdk_device_set_keys (GdkDevice *device, guint num_keys) { |