2.0 compatibility for rdpinput flag debug function

This commit is contained in:
akallabeth 2021-02-16 17:05:27 +01:00 committed by akallabeth
parent e5f92ba550
commit dc179867cc

View File

@ -479,20 +479,20 @@ static int xf_input_handle_event_local(xfContext* xfc, const XEvent* event)
#ifdef WITH_DEBUG_X11
static char* xf_input_touch_state_string(DWORD flags)
{
if (flags & RDPINPUT_CONTACT_FLAG_DOWN)
return "RDPINPUT_CONTACT_FLAG_DOWN";
else if (flags & RDPINPUT_CONTACT_FLAG_UPDATE)
return "RDPINPUT_CONTACT_FLAG_UPDATE";
else if (flags & RDPINPUT_CONTACT_FLAG_UP)
return "RDPINPUT_CONTACT_FLAG_UP";
else if (flags & RDPINPUT_CONTACT_FLAG_INRANGE)
return "RDPINPUT_CONTACT_FLAG_INRANGE";
else if (flags & RDPINPUT_CONTACT_FLAG_INCONTACT)
return "RDPINPUT_CONTACT_FLAG_INCONTACT";
else if (flags & RDPINPUT_CONTACT_FLAG_CANCELED)
return "RDPINPUT_CONTACT_FLAG_CANCELED";
if (flags & CONTACT_FLAG_DOWN)
return "RDPINPUT::CONTACT_FLAG_DOWN";
else if (flags & CONTACT_FLAG_UPDATE)
return "RDPINPUT::CONTACT_FLAG_UPDATE";
else if (flags & CONTACT_FLAG_UP)
return "RDPINPUT::CONTACT_FLAG_UP";
else if (flags & CONTACT_FLAG_INRANGE)
return "RDPINPUT::CONTACT_FLAG_INRANGE";
else if (flags & CONTACT_FLAG_INCONTACT)
return "RDPINPUT::CONTACT_FLAG_INCONTACT";
else if (flags & CONTACT_FLAG_CANCELED)
return "RDPINPUT::CONTACT_FLAG_CANCELED";
else
return "RDPINPUT_CONTACT_FLAG_UNKNOWN";
return "RDPINPUT::CONTACT_FLAG_UNKNOWN";
}
#endif