mirror of https://github.com/libsdl-org/SDL.git
Fixed build
This commit is contained in:
parent
e04064350f
commit
8ae962c904
|
|
@ -565,7 +565,7 @@ void SDL_SendPenButton(Uint64 timestamp, SDL_PenID instance_id, SDL_Window *wind
|
||||||
event.pbutton.down = down;
|
event.pbutton.down = down;
|
||||||
SDL_PushEvent(&event);
|
SDL_PushEvent(&event);
|
||||||
|
|
||||||
if (window && !pen_touching || (pen_touching == instance_id)) {
|
if (window && (!pen_touching || (pen_touching == instance_id))) {
|
||||||
SDL_Mouse *mouse = SDL_GetMouse();
|
SDL_Mouse *mouse = SDL_GetMouse();
|
||||||
if (mouse && mouse->pen_mouse_events) {
|
if (mouse && mouse->pen_mouse_events) {
|
||||||
SDL_SendMouseButton(timestamp, window, SDL_PEN_MOUSEID, button + 1, down);
|
SDL_SendMouseButton(timestamp, window, SDL_PEN_MOUSEID, button + 1, down);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue