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:
committed by
Kristian Høgsberg
parent
bd3489b6e1
commit
b230a7ee58
+3
-3
@@ -1553,7 +1553,7 @@ weston_input_update_drag_surface(struct wl_input_device *input_device,
|
||||
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 @@ notify_key(struct wl_input_device *device,
|
||||
|
||||
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 @@ touch_set_focus(struct weston_input_device *device,
|
||||
*/
|
||||
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;
|
||||
|
||||
+3
-3
@@ -421,7 +421,7 @@ weston_surface_draw(struct weston_surface *es,
|
||||
|
||||
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 @@ notify_key(struct wl_input_device *device,
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user