Daiki Ueno <[email protected]> writes: > (1) assign a keysym to some unused keycode (like keycode 246, which > XF86WLAN is assigned here) with XkbSetMap > (2) send key press event using XTestFakeKeyEvent to get the keysym typed > > Is this supposed to work? After (1), I could type the new keysym with > physical keyboard, but couldn't with XTestFakeKeyEvent. If I change the > mapping with XChangeKeyboardMapping instead of XkbSetMap, it seems to > work with both physical and virtual keyboard.
Sorry for the noise. It was solved by setting xkb->device_spec when calling XkbSetMap. Regards, -- Daiki Ueno _______________________________________________ [email protected]: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: [email protected]
