Is there a way for me to make it so that
ctrl-click is right click?
I dont have a Apple Mouse, but this mouseemu should work.
- emulate middle and right click
- emulate mouse wheel
- block trackpad while typing
First, update your firmware and software.
sudo apt-get update
sudo apt-get upgrade
mouseemu by typing:
sudo apt-get install mouseemu
You might also need to restart (you could also just restart services, but the RPi reboot's quickly enough).
How to Use MouseEmu
mouseemu’s default configuration file is stored in /etc/default/mouseemu
Open the file by typing the following command in a terminal window.
sudo nano /etc/default/mouseemu
Look for the following line, this line will make the middle click work while holding down the left Apple (also known as splat) key.
#MID_CLICK=”-middle 125 272″ # Left Apple Key (LEFTMETA) + click
The following line will enable the right click while holding down Left ctrl
#RIGHT_CLICK=”-right 29 272″ # Left Ctrl + click
Uncomment the previous two lines by removing the
# in the beginning of the line. Now save the file
ctrl + x (follow the instructions for saving, should be the
y key and then
Then either restart your Raspberry Pi or try restarting the
mouseemu service by typing the following. NOTE I'm not 100% sure of the syntax here.
sudo /etc/init.d/mouseemu restart
Restart Raspberry Pi
you can directly map any spare key to any mouse button: