mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
[client] added send keyboard event result checking
This commit is contained in:
parent
2315d496b1
commit
ea41a0e3bc
1 changed files with 10 additions and 2 deletions
|
@ -467,7 +467,11 @@ int eventThread(void * arg)
|
|||
if (scancode == 0)
|
||||
break;
|
||||
|
||||
spice_key_down(scancode);
|
||||
if (!spice_key_down(scancode))
|
||||
{
|
||||
DEBUG_ERROR("SDL_KEYDOWN: failed to send message");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -482,7 +486,11 @@ int eventThread(void * arg)
|
|||
if (scancode == 0)
|
||||
break;
|
||||
|
||||
spice_key_up(scancode);
|
||||
if (!spice_key_up(scancode))
|
||||
{
|
||||
DEBUG_ERROR("SDL_KEYUP: failed to send message");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue