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>
This commit is contained in:
Daniel Stone
2012-05-08 17:17:54 +01:00
committed by Kristian Høgsberg
parent bd3489b6e1
commit b230a7ee58
12 changed files with 29 additions and 27 deletions
+2 -1
View File
@@ -27,6 +27,7 @@
#include <assert.h>
#include <poll.h>
#include <wayland-client.h>
#include <GLES2/gl2.h> /* needed for GLfloat */
struct display {
struct wl_display *display;
@@ -37,7 +38,7 @@ struct display {
struct input {
struct wl_input_device *input_device;
int32_t x, y;
GLfloat x, y;
uint32_t button_mask;
struct surface *pointer_focus;
struct surface *keyboard_focus;