NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Using xmodmap to generate right click event
Hi, I modified my .xmodmaprc file as such :
keycode 116 = Pointer_Button2
keycode 108 = Pointer_Button3
I also added this line to .xinitrc :
xmodmap .xinitrc
Also, using xev confirms that the 2 keys on the left of my space bar are mapped
as second and third mouse buttons :
KeyPress event, serial 39, synthetic NO, window 0x1000001,
root 0x101, subw 0x0, time 7683302, (402,-107), root:(938,76),
state 0x0, keycode 116 (keysym 0xfeea, Pointer_Button2), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 39, synthetic NO, window 0x1000001,
root 0x101, subw 0x0, time 7683382, (402,-107), root:(938,76),
state 0x0, keycode 116 (keysym 0xfeea, Pointer_Button2), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 39, synthetic NO, window 0x1000001,
root 0x101, subw 0x0, time 7684132, (402,-107), root:(938,76),
state 0x0, keycode 108 (keysym 0xfeeb, Pointer_Button3), same_screen YES,
XKeysymToKeycode returns keycode: 96
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 39, synthetic NO, window 0x1000001,
root 0x101, subw 0x0, time 7684212, (402,-107), root:(938,76),
state 0x0, keycode 108 (keysym 0xfeeb, Pointer_Button3), same_screen YES,
XKeysymToKeycode returns keycode: 96
XLookupString gives 0 bytes:
XFilterEvent returns: False
Still, I cannot generate right click events using my keyboard.
Thank you,
Philippe Saint-Jacques
Home |
Main Index |
Thread Index |
Old Index