how might i make a mouse who's L and R buttons flip depending on what side of the keyboard it's on?
a manual switch would be the easiest, but you could use IR LEDs on each side of the key board and 2 IR receivers one on each side of the mouse, then it just detects which side the IR led is lit up on and changes the buttons to the correct configuration.