Convert internal input co-ordinates to GLfloat
Change all client motion handlers to take GLfloat for co-ordinates,
rather than int32_t.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
diff --git a/src/compositor.c b/src/compositor.c
index 2e1c9e4..e3b4118 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1553,7 +1553,7 @@
int dx, int dy);
WL_EXPORT void
-notify_motion(struct wl_input_device *device, uint32_t time, int x, int y)
+notify_motion(struct wl_input_device *device, uint32_t time, GLfloat x, GLfloat y)
{
struct weston_output *output;
const struct wl_pointer_grab_interface *interface;
@@ -1769,7 +1769,7 @@
WL_EXPORT void
notify_pointer_focus(struct wl_input_device *device,
- struct weston_output *output, int32_t x, int32_t y)
+ struct weston_output *output, GLfloat x, GLfloat y)
{
struct weston_input_device *wd = (struct weston_input_device *) device;
struct weston_compositor *compositor = wd->compositor;
@@ -1917,7 +1917,7 @@
*/
WL_EXPORT void
notify_touch(struct wl_input_device *device, uint32_t time, int touch_id,
- int x, int y, int touch_type)
+ GLfloat x, GLfloat y, int touch_type)
{
struct weston_input_device *wd = (struct weston_input_device *) device;
struct weston_compositor *ec = wd->compositor;
diff --git a/src/compositor.h b/src/compositor.h
index 3d9ddd8..0278cf9 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -421,7 +421,7 @@
void
notify_motion(struct wl_input_device *device,
- uint32_t time, int x, int y);
+ uint32_t time, GLfloat x, GLfloat y);
void
notify_button(struct wl_input_device *device,
uint32_t time, int32_t button, uint32_t state);
@@ -435,14 +435,14 @@
void
notify_pointer_focus(struct wl_input_device *device,
struct weston_output *output,
- int32_t x, int32_t y);
+ GLfloat x, GLfloat y);
void
notify_keyboard_focus(struct wl_input_device *device, struct wl_array *keys);
void
notify_touch(struct wl_input_device *device, uint32_t time, int touch_id,
- int x, int y, int touch_type);
+ GLfloat x, GLfloat y, int touch_type);
void
weston_layer_init(struct weston_layer *layer, struct wl_list *below);