mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] spice: update PureSpice submodule
This commit is contained in:
parent
6347f02efe
commit
0d00936aac
@ -837,6 +837,12 @@ static void audioData(uint8_t * data, size_t size)
|
|||||||
g_state.audioDev->play(data, size);
|
g_state.audioDev->play(data, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void spiceReady(void)
|
||||||
|
{
|
||||||
|
// set the intial mouse mode
|
||||||
|
purespice_mouseMode(true);
|
||||||
|
}
|
||||||
|
|
||||||
int spiceThread(void * arg)
|
int spiceThread(void * arg)
|
||||||
{
|
{
|
||||||
const struct PSConfig config =
|
const struct PSConfig config =
|
||||||
@ -844,6 +850,7 @@ int spiceThread(void * arg)
|
|||||||
.host = g_params.spiceHost,
|
.host = g_params.spiceHost,
|
||||||
.port = g_params.spicePort,
|
.port = g_params.spicePort,
|
||||||
.password = "",
|
.password = "",
|
||||||
|
.ready = spiceReady,
|
||||||
.log =
|
.log =
|
||||||
{
|
{
|
||||||
.info = debug_info,
|
.info = debug_info,
|
||||||
@ -875,21 +882,6 @@ int spiceThread(void * arg)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait for spice to finish connecting
|
|
||||||
while(g_state.state != APP_STATE_SHUTDOWN && !purespice_ready())
|
|
||||||
{
|
|
||||||
PSStatus status;
|
|
||||||
if ((status = purespice_process(1000)) != PS_STATUS_RUN)
|
|
||||||
{
|
|
||||||
if (status != PS_STATUS_SHUTDOWN)
|
|
||||||
DEBUG_ERROR("Failed to process spice messages");
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// set the intial mouse mode
|
|
||||||
purespice_mouseMode(true);
|
|
||||||
|
|
||||||
// process all spice messages
|
// process all spice messages
|
||||||
while(g_state.state != APP_STATE_SHUTDOWN)
|
while(g_state.state != APP_STATE_SHUTDOWN)
|
||||||
{
|
{
|
||||||
@ -1354,7 +1346,7 @@ static void lg_shutdown(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if spice is still connected send key up events for any pressed keys
|
// if spice is still connected send key up events for any pressed keys
|
||||||
if (g_params.useSpiceInput && purespice_ready())
|
if (g_params.useSpiceInput)
|
||||||
{
|
{
|
||||||
for(int scancode = 0; scancode < KEY_MAX; ++scancode)
|
for(int scancode = 0; scancode < KEY_MAX; ++scancode)
|
||||||
if (g_state.keyDown[scancode])
|
if (g_state.keyDown[scancode])
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 0015d9108eff558bbe05e279d6aca7a9c256523b
|
Subproject commit 427d6f34d82d4a7a1de40218cc1c021314aa7d60
|
Loading…
Reference in New Issue
Block a user