I forgot How to listen to click events

I asked this a while ago and cant find the thread. >.>

When I do the following code:

if (TouchInput.isTriggered('touchcancel')) { console.log('dasdasdasd'); }And left click on my apple mouse, I get dasdasdasd I was under the impression that right click is the cancel? am I missing something?
Code:
TouchInput.isCancelled()
It gets recognized like this:
Code:
TouchInput._onTouchStart = function(event) {    // ...    if (event.touches.length >= 2) {        this._onCancel(x, y);    } else {        this._onTrigger(x, y);    }    //...};TouchInput._onCancel = function(x, y) {    this._events.cancelled = true;    this._x = x;    this._y = y;};
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/i-forgot-how-to-listen-to-click-events.53194/