Hello everybody!
My problem is this:
In FreeRDP old version (i don't know what version exactly) i use this code to
execute scripts when keys is pressed:
void
xkb_handle_special_keys(void * inst, uint32 time, uint16 flags, uint8 keycode)
{
vkcode = keycodeToVkcode[keycode];
switch(vkcode)
{
case VK_SCROLL:
system("/usr/bin/devilspie -a");
break;
case VK_RETURN:
if((CTRL_KEY_STATE > 0) && (ALT_KEY_STATE > 0) &&
((flags & KBD_FLAG_UP) == 0))
xwin_toggle_fullscreen(inst);
break;
case VK_F10:
if (flags == 0xC000)
system("/usr/bin/sudo /interop/usb_mount.sh");
printf("run usb_mount \n");
break;
case VK_F4:
if (flags == 0xC000)
system("/usr/bin/sudo /interop/usb_unmount.sh");
printf("run usb_unomount \n");
break;
case VK_RCONTROL:
case VK_CONTROL:
case VK_LCONTROL:
CTRL_KEY_STATE = (flags & KBD_FLAG_UP) ? 0 : 1;
break;
case VK_MENU:
case VK_LMENU:
case VK_RMENU:
ALT_KEY_STATE = (flags & KBD_FLAG_UP) ? 0 : 1;
break;
default:
break;
}
}
How is this code in new versions?
Many thanks.
--
Marcos Barbosa <marcos.barb...@interop.com.br>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel