Actualy, you should take 8 units from the keycode in order to it work. So, the 96 keycode should be set as 88 and so on.. as follows:
#will emulate the middle button on the F11 key (95)
sudo sysctl dev.mac_hid.mouse_button2_keycode=87
#will emulate the right button on the F12 key (96)
sudo sysctl dev.mac_hid.mouse_button3_keycode=98
What I am trying to do is to emulate the right button as pressing the litle <enter> button(keycode 104) + the trackpad click, but no success yet.
Actualy, you should take 8 units from the keycode in order to it work. So, the 96 keycode should be set as 88 and so on.. as follows:
#will emulate the middle button on the F11 key (95) hid.mouse_ button2_ keycode= 87 hid.mouse_ button3_ keycode= 98
sudo sysctl dev.mac_
#will emulate the right button on the F12 key (96)
sudo sysctl dev.mac_
What I am trying to do is to emulate the right button as pressing the litle <enter> button(keycode 104) + the trackpad click, but no success yet.
Suggests?
I am going to try now the mouseemu + upstart.