Commit ddd24761 authored by Alexander Larsson's avatar Alexander Larsson

Add _gdk_device_get_axis_info

This is needed for the win32 master/slave handling code.
parent 2697ac57
......@@ -1369,6 +1369,29 @@ _gdk_device_add_axis (GdkDevice *device,
return pos;
_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;
_gdk_device_set_keys (GdkDevice *device,
guint num_keys)
......@@ -121,6 +121,13 @@ guint _gdk_device_add_axis (GdkDevice *device,
gdouble min_value,
gdouble max_value,
gdouble resolution);
void _gdk_device_get_axis_info (GdkDevice *device,
guint index,
GdkAtom *label_atom,
GdkAxisUse *use,
gdouble *min_value,
gdouble *max_value,
gdouble *resolution);
void _gdk_device_set_keys (GdkDevice *device,
guint num_keys);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment