All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sdl2: Add extra mouse buttons
@ 2020-12-06 18:16 Darrell Walisser
  2020-12-07 10:25 ` Gerd Hoffmann
  2020-12-10 12:22 ` Gerd Hoffmann
  0 siblings, 2 replies; 6+ messages in thread
From: Darrell Walisser @ 2020-12-06 18:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Gerd Hoffmann

Sends mouse buttons 4 and 5, aka "SIDE" and "EXTRA" to the guest

Signed-off-by: Darrell Walisser <darrell.walisser@gmail.com>
---
 ui/sdl2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/sdl2.c b/ui/sdl2.c
index 189d26e2a9..a578017268 100644
--- a/ui/sdl2.c
+++ b/ui/sdl2.c
@@ -275,6 +275,8 @@ static void sdl_send_mouse_event(struct
sdl2_console *scon, int dx, int dy,
         [INPUT_BUTTON_LEFT]       = SDL_BUTTON(SDL_BUTTON_LEFT),
         [INPUT_BUTTON_MIDDLE]     = SDL_BUTTON(SDL_BUTTON_MIDDLE),
         [INPUT_BUTTON_RIGHT]      = SDL_BUTTON(SDL_BUTTON_RIGHT),
+        [INPUT_BUTTON_SIDE]       = SDL_BUTTON(SDL_BUTTON_X1),
+        [INPUT_BUTTON_EXTRA]      = SDL_BUTTON(SDL_BUTTON_X2)
     };
     static uint32_t prev_state;

-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] sdl2: Add extra mouse buttons
  2020-12-06 18:16 [PATCH] sdl2: Add extra mouse buttons Darrell Walisser
@ 2020-12-07 10:25 ` Gerd Hoffmann
  2020-12-10 12:22 ` Gerd Hoffmann
  1 sibling, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2020-12-07 10:25 UTC (permalink / raw)
  To: Darrell Walisser; +Cc: qemu-trivial, qemu-devel

On Sun, Dec 06, 2020 at 01:16:30PM -0500, Darrell Walisser wrote:
> Sends mouse buttons 4 and 5, aka "SIDE" and "EXTRA" to the guest
> 
> Signed-off-by: Darrell Walisser <darrell.walisser@gmail.com>
> ---
>  ui/sdl2.c | 2 ++
>  1 file changed, 2 insertions(+)

> +        [INPUT_BUTTON_SIDE]       = SDL_BUTTON(SDL_BUTTON_X1),
> +        [INPUT_BUTTON_EXTRA]      = SDL_BUTTON(SDL_BUTTON_X2)

Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] sdl2: Add extra mouse buttons
  2020-12-06 18:16 [PATCH] sdl2: Add extra mouse buttons Darrell Walisser
  2020-12-07 10:25 ` Gerd Hoffmann
@ 2020-12-10 12:22 ` Gerd Hoffmann
  1 sibling, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2020-12-10 12:22 UTC (permalink / raw)
  To: Darrell Walisser; +Cc: qemu-trivial, qemu-devel

  Hi,

> @@ -275,6 +275,8 @@ static void sdl_send_mouse_event(struct
> sdl2_console *scon, int dx, int dy,

Patch is corrupted (mailer wrapped the line).
Can you resend with git send-email?

thanks,
  Gerd



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] sdl2: Add extra mouse buttons
@ 2020-12-10 14:33 Darrell Walisser
  0 siblings, 0 replies; 6+ messages in thread
From: Darrell Walisser @ 2020-12-10 14:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

Allows guest to receive mouse buttons 4 and 5, aka "SIDE" button
and "EXTRA" button

Signed-off-by: Darrell Walisser <darrell.walisser@gmail.com>
---
 ui/sdl2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/sdl2.c b/ui/sdl2.c
index 189d26e2a9..a578017268 100644
--- a/ui/sdl2.c
+++ b/ui/sdl2.c
@@ -275,6 +275,8 @@ static void sdl_send_mouse_event(struct sdl2_console *scon, int dx, int dy,
         [INPUT_BUTTON_LEFT]       = SDL_BUTTON(SDL_BUTTON_LEFT),
         [INPUT_BUTTON_MIDDLE]     = SDL_BUTTON(SDL_BUTTON_MIDDLE),
         [INPUT_BUTTON_RIGHT]      = SDL_BUTTON(SDL_BUTTON_RIGHT),
+        [INPUT_BUTTON_SIDE]       = SDL_BUTTON(SDL_BUTTON_X1),
+        [INPUT_BUTTON_EXTRA]      = SDL_BUTTON(SDL_BUTTON_X2)
     };
     static uint32_t prev_state;
 
-- 
2.25.1




^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] sdl2: Add extra mouse buttons
@ 2020-12-10 14:33 Darrell Walisser
  0 siblings, 0 replies; 6+ messages in thread
From: Darrell Walisser @ 2020-12-10 14:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

Allows guest to receive mouse buttons 4 and 5, aka "SIDE" button
and "EXTRA" button

Signed-off-by: Darrell Walisser <darrell.walisser@gmail.com>
---
 ui/sdl2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/sdl2.c b/ui/sdl2.c
index 189d26e2a9..a578017268 100644
--- a/ui/sdl2.c
+++ b/ui/sdl2.c
@@ -275,6 +275,8 @@ static void sdl_send_mouse_event(struct sdl2_console *scon, int dx, int dy,
         [INPUT_BUTTON_LEFT]       = SDL_BUTTON(SDL_BUTTON_LEFT),
         [INPUT_BUTTON_MIDDLE]     = SDL_BUTTON(SDL_BUTTON_MIDDLE),
         [INPUT_BUTTON_RIGHT]      = SDL_BUTTON(SDL_BUTTON_RIGHT),
+        [INPUT_BUTTON_SIDE]       = SDL_BUTTON(SDL_BUTTON_X1),
+        [INPUT_BUTTON_EXTRA]      = SDL_BUTTON(SDL_BUTTON_X2)
     };
     static uint32_t prev_state;
 
-- 
2.25.1




^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] sdl2: Add extra mouse buttons
@ 2020-12-10 14:33 Darrell Walisser
  0 siblings, 0 replies; 6+ messages in thread
From: Darrell Walisser @ 2020-12-10 14:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

Allows guest to receive mouse buttons 4 and 5, aka "SIDE" button
and "EXTRA" button

Signed-off-by: Darrell Walisser <darrell.walisser@gmail.com>
---
 ui/sdl2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/sdl2.c b/ui/sdl2.c
index 189d26e2a9..a578017268 100644
--- a/ui/sdl2.c
+++ b/ui/sdl2.c
@@ -275,6 +275,8 @@ static void sdl_send_mouse_event(struct sdl2_console *scon, int dx, int dy,
         [INPUT_BUTTON_LEFT]       = SDL_BUTTON(SDL_BUTTON_LEFT),
         [INPUT_BUTTON_MIDDLE]     = SDL_BUTTON(SDL_BUTTON_MIDDLE),
         [INPUT_BUTTON_RIGHT]      = SDL_BUTTON(SDL_BUTTON_RIGHT),
+        [INPUT_BUTTON_SIDE]       = SDL_BUTTON(SDL_BUTTON_X1),
+        [INPUT_BUTTON_EXTRA]      = SDL_BUTTON(SDL_BUTTON_X2)
     };
     static uint32_t prev_state;
 
-- 
2.25.1




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-10 14:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-06 18:16 [PATCH] sdl2: Add extra mouse buttons Darrell Walisser
2020-12-07 10:25 ` Gerd Hoffmann
2020-12-10 12:22 ` Gerd Hoffmann
2020-12-10 14:33 Darrell Walisser
2020-12-10 14:33 Darrell Walisser
2020-12-10 14:33 Darrell Walisser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.