mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-07 07:40:16 +01:00
tools: print property values in the demo client and server
This commit is contained in:
parent
27af399992
commit
0a382dec3d
2 changed files with 11 additions and 0 deletions
|
|
@ -384,6 +384,12 @@ int main(int argc, char **argv)
|
|||
colorprint("our device was removed\n");
|
||||
break;
|
||||
}
|
||||
case EI_EVENT_PROPERTY:
|
||||
{
|
||||
colorprint("Property %s: %s\n", ei_event_property_get_name(e),
|
||||
ei_event_property_get_value(e));
|
||||
break;
|
||||
}
|
||||
case EI_EVENT_FRAME:
|
||||
break;
|
||||
case EI_EVENT_DEVICE_START_EMULATING:
|
||||
|
|
|
|||
|
|
@ -436,6 +436,11 @@ eis_demo_server_printf_handle_event(struct eis_demo_server *server,
|
|||
case EIS_EVENT_FRAME:
|
||||
/* nothing to do, we're not fancy enough to accumulate events properly */
|
||||
break;
|
||||
case EIS_EVENT_CLIENT_PROPERTY:
|
||||
{
|
||||
colorprint("Property: %s: %s\n", eis_event_property_get_name(e), eis_event_property_get_value(e));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
abort();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue