fix differenciate between left/right button press in Canvas.cpp

hello,
I was doing the lua tutorial for mouse input and I wanted to test right button input, but all I could receive was left button events ...
Anyway i looked at the code in canvas.cpp and it seems something wasn't quite right so I tried to fix it !!