mirror of
https://github.com/brl/mutter.git
synced 2024-12-28 22:02:14 +00:00
39 lines
923 B
C
39 lines
923 B
C
|
#ifdef HAVE_CONFIG_H
|
||
|
#include "config.h"
|
||
|
#endif
|
||
|
|
||
|
#include <glib-object.h>
|
||
|
|
||
|
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
|
||
|
|
||
|
#include "clutter-device-manager-private.h"
|
||
|
#include "deprecated/clutter-input-device.h"
|
||
|
|
||
|
/**
|
||
|
* clutter_input_device_get_device_coords:
|
||
|
* @device: a #ClutterInputDevice of type %CLUTTER_POINTER_DEVICE
|
||
|
* @x: (out): return location for the X coordinate
|
||
|
* @y: (out): return location for the Y coordinate
|
||
|
*
|
||
|
* Retrieves the latest coordinates of the pointer of @device
|
||
|
*
|
||
|
* Since: 1.2
|
||
|
*
|
||
|
* Deprecated: 1.12: Use clutter_input_device_get_coords() instead.
|
||
|
*/
|
||
|
void
|
||
|
clutter_input_device_get_device_coords (ClutterInputDevice *device,
|
||
|
gint *x,
|
||
|
gint *y)
|
||
|
{
|
||
|
ClutterPoint point;
|
||
|
|
||
|
clutter_input_device_get_coords (device, NULL, &point);
|
||
|
|
||
|
if (x)
|
||
|
*x = point.x;
|
||
|
|
||
|
if (y)
|
||
|
*y = point.y;
|
||
|
}
|