| 1 |
#ifdef HAVE_CONFIG_H |
| 2 |
#include "config.h" |
| 3 |
#endif |
| 4 |
|
| 5 |
#include <glib-object.h> |
| 6 |
|
| 7 |
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS |
| 8 |
|
| 9 |
#include "clutter-device-manager-private.h" |
| 10 |
#include "deprecated/clutter-input-device.h" |
| 11 |
|
| 12 |
/** |
| 13 |
* clutter_input_device_get_device_coords: |
| 14 |
* @device: a #ClutterInputDevice of type %CLUTTER_POINTER_DEVICE |
| 15 |
* @x: (out): return location for the X coordinate |
| 16 |
* @y: (out): return location for the Y coordinate |
| 17 |
* |
| 18 |
* Retrieves the latest coordinates of the pointer of @device |
| 19 |
* |
| 20 |
* Since: 1.2 |
| 21 |
* |
| 22 |
* Deprecated: 1.12: Use clutter_input_device_get_coords() instead. |
| 23 |
*/ |
| 24 |
void |
| 25 |
clutter_input_device_get_device_coords (ClutterInputDevice *device, |
| 26 |
gint *x, |
| 27 |
gint *y) |
| 28 |
{ |
| 29 |
ClutterPoint point; |
| 30 |
|
| 31 |
clutter_input_device_get_coords (device, NULL, &point); |
| 32 |
|
| 33 |
if (x) |
| 34 |
*x = point.x; |
| 35 |
|
| 36 |
if (y) |
| 37 |
*y = point.y; |
| 38 |
} |